From 05d20139aa7659bf09435a963a71247e52796c2c Mon Sep 17 00:00:00 2001 From: Antony Date: Sat, 28 Sep 2024 16:04:00 +0100 Subject: [PATCH] Simplify `AnimatableProperty::Property` trait bounds (#15495) # Objective - Fixes #15392. ## Solution - Use `Reflectable` in place of `GetTypeRegistration + Reflect + TypePath + Typed`. --- crates/bevy_animation/src/keyframes.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/crates/bevy_animation/src/keyframes.rs b/crates/bevy_animation/src/keyframes.rs index 8da153aab4b9e..b85feb5af1e61 100644 --- a/crates/bevy_animation/src/keyframes.rs +++ b/crates/bevy_animation/src/keyframes.rs @@ -8,7 +8,7 @@ use core::{ use bevy_derive::{Deref, DerefMut}; use bevy_ecs::{component::Component, world::Mut}; 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_transform::prelude::Transform; @@ -69,16 +69,7 @@ pub trait AnimatableProperty: Reflect + TypePath + 'static { type Component: Component; /// The type of the property to be animated. - type Property: Animatable - + FromReflect - + GetTypeRegistration - + Reflect - + TypePath - + Typed - + Clone - + Sync - + Debug - + 'static; + type Property: Animatable + FromReflect + Reflectable + Clone + Sync + Debug + 'static; /// Given a reference to the component, returns a reference to the property. ///