Skip to content

Commit

Permalink
add PartialEq to Outline (#14055)
Browse files Browse the repository at this point in the history
# Objective

`sickle_ui` needs `PartialEq` on components to turn them into animatable
style attributes.

## Solution

All properties of Outline is already `PartialEq`, add derive on
`Outline` as well.

## Testing

- used `sickle_ui` to test if it can be made animatable
  • Loading branch information
eidloi authored Jun 27, 2024
1 parent 44db8b7 commit edca870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/ui_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ impl Default for BorderColor {
}
}

#[derive(Component, Copy, Clone, Default, Debug, Reflect)]
#[derive(Component, Copy, Clone, Default, Debug, PartialEq, Reflect)]
#[reflect(Component, Default)]
#[cfg_attr(
feature = "serialize",
Expand Down

0 comments on commit edca870

Please sign in to comment.