Add type registrations for animation types (#11889)

# Objective
Adds type registrations for some animation and math types

Fixes #11848
This commit is contained in:
Evgeny Kropotin 2024-02-16 05:17:42 -08:00 committed by GitHub
parent fe777d5c3f
commit 149d48f586
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -956,6 +956,10 @@ impl Plugin for AnimationPlugin {
app.init_asset::<AnimationClip>()
.register_asset_reflect::<AnimationClip>()
.register_type::<AnimationPlayer>()
.register_type::<VariableCurve>()
.register_type::<Vec<VariableCurve>>()
.register_type::<Interpolation>()
.register_type::<Keyframes>()
.add_systems(
PostUpdate,
animation_player.before(TransformSystem::TransformPropagate),

View file

@ -107,7 +107,9 @@ fn register_math_types(app: &mut App) {
.register_type::<bevy_math::Mat4>()
.register_type::<bevy_math::DQuat>()
.register_type::<bevy_math::Quat>()
.register_type::<bevy_math::Rect>();
.register_type::<bevy_math::Rect>()
.register_type::<Vec<bevy_math::Quat>>()
.register_type::<Vec<bevy_math::Vec3>>();
}
/// Setup of default task pools: [`AsyncComputeTaskPool`](bevy_tasks::AsyncComputeTaskPool),