From 0689f4ccb642d292e5d57d13a84b85af46f17239 Mon Sep 17 00:00:00 2001 From: AxiomaticSemantics <117950168+AxiomaticSemantics@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:05:04 -0500 Subject: [PATCH] Add Debug, PartialEq and Eq derives to bevy_animation. (#10562) # Objective - Add `Debug` `PartialEq` and `Eq` impl's to `RepeatAnimation` ## Solution - Add the wanted derives. Co-authored-by: ebola --- crates/bevy_animation/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_animation/src/lib.rs b/crates/bevy_animation/src/lib.rs index b669617d45fc9..e7896dcaa8ee5 100644 --- a/crates/bevy_animation/src/lib.rs +++ b/crates/bevy_animation/src/lib.rs @@ -123,7 +123,7 @@ impl AnimationClip { } /// Repetition behavior of an animation. -#[derive(Reflect, Copy, Clone, Default)] +#[derive(Reflect, Debug, PartialEq, Eq, Copy, Clone, Default)] pub enum RepeatAnimation { /// The animation will finish after running once. #[default] @@ -134,7 +134,7 @@ pub enum RepeatAnimation { Forever, } -#[derive(Reflect)] +#[derive(Debug, Reflect)] struct PlayingAnimation { repeat: RepeatAnimation, speed: f32,