Skip to content

Commit

Permalink
Reflect derived traits on all components and resources: bevy_animation (
Browse files Browse the repository at this point in the history
#15209)

Solves #15187 for the
bevy_animation subcrate
  • Loading branch information
blazepaws authored Sep 15, 2024
1 parent 3f425da commit c909a05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_animation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use bevy_asset::{Asset, AssetApp, Assets, Handle};
use bevy_core::Name;
use bevy_ecs::{entity::MapEntities, prelude::*, reflect::ReflectMapEntities};
use bevy_math::{FloatExt, Quat, Vec3};
use bevy_reflect::std_traits::ReflectDefault;
use bevy_reflect::Reflect;
use bevy_render::mesh::morph::MorphWeights;
use bevy_time::Time;
Expand Down Expand Up @@ -540,7 +541,7 @@ impl ActiveAnimation {
/// Automatically added to any root animations of a `SceneBundle` when it is
/// spawned.
#[derive(Component, Default, Reflect)]
#[reflect(Component)]
#[reflect(Component, Default)]
pub struct AnimationPlayer {
/// We use a `BTreeMap` instead of a `HashMap` here to ensure a consistent
/// ordering when applying the animations.
Expand Down

0 comments on commit c909a05

Please sign in to comment.