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:
Blazepaws 2024-09-15 13:58:51 +02:00 committed by GitHub
parent 3f425da66e
commit c909a0572d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.