From 20638f3a10c7cc11e38cc41a98fdc037da5f9620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Kiss?= Date: Thu, 27 Jun 2024 22:03:07 +0200 Subject: [PATCH] add PartialEq to Outline (#14055) # 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 --- crates/bevy_ui/src/ui_node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/ui_node.rs b/crates/bevy_ui/src/ui_node.rs index 95166fed1c..5e918e4d1c 100644 --- a/crates/bevy_ui/src/ui_node.rs +++ b/crates/bevy_ui/src/ui_node.rs @@ -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",