Simplify AnimatableProperty::Property
trait bounds (#15495)
# Objective - Fixes #15392. ## Solution - Use `Reflectable` in place of `GetTypeRegistration + Reflect + TypePath + Typed`.
This commit is contained in:
parent
4a013b687a
commit
05d20139aa
@ -8,7 +8,7 @@ use core::{
|
|||||||
use bevy_derive::{Deref, DerefMut};
|
use bevy_derive::{Deref, DerefMut};
|
||||||
use bevy_ecs::{component::Component, world::Mut};
|
use bevy_ecs::{component::Component, world::Mut};
|
||||||
use bevy_math::{Quat, Vec3};
|
use bevy_math::{Quat, Vec3};
|
||||||
use bevy_reflect::{FromReflect, GetTypeRegistration, Reflect, TypePath, Typed};
|
use bevy_reflect::{FromReflect, Reflect, Reflectable, TypePath};
|
||||||
use bevy_render::mesh::morph::MorphWeights;
|
use bevy_render::mesh::morph::MorphWeights;
|
||||||
use bevy_transform::prelude::Transform;
|
use bevy_transform::prelude::Transform;
|
||||||
|
|
||||||
@ -69,16 +69,7 @@ pub trait AnimatableProperty: Reflect + TypePath + 'static {
|
|||||||
type Component: Component;
|
type Component: Component;
|
||||||
|
|
||||||
/// The type of the property to be animated.
|
/// The type of the property to be animated.
|
||||||
type Property: Animatable
|
type Property: Animatable + FromReflect + Reflectable + Clone + Sync + Debug + 'static;
|
||||||
+ FromReflect
|
|
||||||
+ GetTypeRegistration
|
|
||||||
+ Reflect
|
|
||||||
+ TypePath
|
|
||||||
+ Typed
|
|
||||||
+ Clone
|
|
||||||
+ Sync
|
|
||||||
+ Debug
|
|
||||||
+ 'static;
|
|
||||||
|
|
||||||
/// Given a reference to the component, returns a reference to the property.
|
/// Given a reference to the component, returns a reference to the property.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user