Skip to content

Commit

Permalink
Simplify AnimatableProperty::Property trait bounds (#15495)
Browse files Browse the repository at this point in the history
# Objective

- Fixes #15392.

## Solution

- Use `Reflectable` in place of `GetTypeRegistration + Reflect +
TypePath + Typed`.
  • Loading branch information
chompaa authored Sep 28, 2024
1 parent 4a013b6 commit 05d2013
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions crates/bevy_animation/src/keyframes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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.
///
Expand Down

0 comments on commit 05d2013

Please sign in to comment.