mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Add type registrations for animation types (#11889)
# Objective Adds type registrations for some animation and math types Fixes #11848
This commit is contained in:
parent
fe777d5c3f
commit
149d48f586
2 changed files with 7 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue