From 2294d5b4f17aab9fac1797636dd8c027d4148e7d Mon Sep 17 00:00:00 2001 From: Talin Date: Wed, 16 Jul 2025 19:16:07 -0700 Subject: [PATCH] More build fixes, sorry. --- crates/bevy_feathers/src/cursor.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/bevy_feathers/src/cursor.rs b/crates/bevy_feathers/src/cursor.rs index 58f9bb3e96..61e1ad6bf3 100644 --- a/crates/bevy_feathers/src/cursor.rs +++ b/crates/bevy_feathers/src/cursor.rs @@ -53,9 +53,10 @@ impl EntityCursor { match (self, cursor_icon) { #[cfg(feature = "custom_cursor")] (EntityCursor::Custom(custom), CursorIcon::Custom(other)) => custom == other, - (EntityCursor::System(system), cursor_icon) => { - CursorIcon::from(*system) == *cursor_icon + (EntityCursor::System(system), CursorIcon::System(cursor_icon)) => { + *system == *cursor_icon } + _ => false, } } } @@ -68,7 +69,7 @@ impl Default for EntityCursor { /// System which updates the window cursor icon whenever the mouse hovers over an entity with /// a [`CursorIcon`] component. If no entity is hovered, the cursor icon is set to -/// the cursor in the [`DefaultCursorIcon`] resource. +/// the cursor in the [`DefaultEntityCursor`] resource. pub(crate) fn update_cursor( mut commands: Commands, hover_map: Option>,