mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Add PartialEq to Anchor (#10424)
Add PartialEq to Anchor. # Objective Make Anchor work with bevy_egui's ComboBox. ## Solution Make Anchor PartialEq.
This commit is contained in:
parent
04ceb46fe0
commit
49cff08560
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ pub struct Sprite {
|
|||
|
||||
/// How a sprite is positioned relative to its [`Transform`](bevy_transform::components::Transform).
|
||||
/// It defaults to `Anchor::Center`.
|
||||
#[derive(Component, Debug, Clone, Copy, Default, Reflect)]
|
||||
#[derive(Component, Debug, Clone, Copy, PartialEq, Default, Reflect)]
|
||||
#[doc(alias = "pivot")]
|
||||
pub enum Anchor {
|
||||
#[default]
|
||||
|
|
Loading…
Reference in a new issue