Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-lua authored Sep 28, 2024
2 parents 32187d1 + 05d2013 commit 813e548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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
3 changes: 2 additions & 1 deletion crates/bevy_render/src/view/window/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,10 @@ pub fn update_cursors(

/// Resets the cursor to the default icon when `CursorIcon` is removed.
pub fn on_remove_cursor_icon(trigger: Trigger<OnRemove, CursorIcon>, mut commands: Commands) {
// Use `try_insert` to avoid panic if the window is being destroyed.
commands
.entity(trigger.entity())
.insert(PendingCursor(Some(CursorSource::System(
.try_insert(PendingCursor(Some(CursorSource::System(
convert_system_cursor_icon(SystemCursorIcon::Default),
))));
}
Expand Down

0 comments on commit 813e548

Please sign in to comment.