Skip to content

Commit

Permalink
Add Debug, PartialEq and Eq derives to bevy_animation. (bevyengine#10562
Browse files Browse the repository at this point in the history
)

# Objective

- Add `Debug` `PartialEq` and `Eq` impl's to `RepeatAnimation`

## Solution

- Add the wanted derives.

Co-authored-by: ebola <dev@axiomatic>
  • Loading branch information
2 people authored and Ray Redondo committed Jan 9, 2024
1 parent 2a13bfa commit 0689f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_animation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -134,7 +134,7 @@ pub enum RepeatAnimation {
Forever,
}

#[derive(Reflect)]
#[derive(Debug, Reflect)]
struct PlayingAnimation {
repeat: RepeatAnimation,
speed: f32,
Expand Down

0 comments on commit 0689f4c

Please sign in to comment.