mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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:
parent
1f05e1e2ab
commit
8c15713b9a
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue