mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Reflect derived traits on all components and resources: bevy_animation (#15209)
Solves https://github.com/bevyengine/bevy/issues/15187 for the bevy_animation subcrate
This commit is contained in:
parent
3f425da66e
commit
c909a0572d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue