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 <dev@axiomatic>
This commit is contained in:
AxiomaticSemantics 2023-11-15 09:05:04 -05:00 committed by GitHub
parent 1f05e1e2ab
commit 8c15713b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ impl AnimationClip {
} }
/// Repetition behavior of an animation. /// Repetition behavior of an animation.
#[derive(Reflect, Copy, Clone, Default)] #[derive(Reflect, Debug, PartialEq, Eq, Copy, Clone, Default)]
pub enum RepeatAnimation { pub enum RepeatAnimation {
/// The animation will finish after running once. /// The animation will finish after running once.
#[default] #[default]
@ -134,7 +134,7 @@ pub enum RepeatAnimation {
Forever, Forever,
} }
#[derive(Reflect)] #[derive(Debug, Reflect)]
struct PlayingAnimation { struct PlayingAnimation {
repeat: RepeatAnimation, repeat: RepeatAnimation,
speed: f32, speed: f32,