Skip to content

Commit

Permalink
Add PartialEq to Anchor (bevyengine#10424)
Browse files Browse the repository at this point in the history
Add PartialEq to Anchor.

# Objective

Make Anchor work with bevy_egui's ComboBox.

## Solution

Make Anchor PartialEq.
  • Loading branch information
mintlu8 authored Nov 7, 2023
1 parent 04ceb46 commit 49cff08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/sprite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 49cff08

Please sign in to comment.