Skip to content

Commit 8c15713

Browse files
AxiomaticSemanticsebola
AxiomaticSemantics
and
ebola
authored
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>
1 parent 1f05e1e commit 8c15713

File tree

1 file changed

+2
-2
lines changed
  • crates/bevy_animation/src

1 file changed

+2
-2
lines changed

crates/bevy_animation/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl AnimationClip {
123123
}
124124

125125
/// Repetition behavior of an animation.
126-
#[derive(Reflect, Copy, Clone, Default)]
126+
#[derive(Reflect, Debug, PartialEq, Eq, Copy, Clone, Default)]
127127
pub enum RepeatAnimation {
128128
/// The animation will finish after running once.
129129
#[default]
@@ -134,7 +134,7 @@ pub enum RepeatAnimation {
134134
Forever,
135135
}
136136

137-
#[derive(Reflect)]
137+
#[derive(Debug, Reflect)]
138138
struct PlayingAnimation {
139139
repeat: RepeatAnimation,
140140
speed: f32,

0 commit comments

Comments
 (0)