Skip to content

Commit 914bcff

Browse files
authored
fix reflect feature gate (#20811)
# Objective - fix building bevy_window with reflect disabled ## Solution - I missed one last thing to gate last time I tried to fix it ## Testing `cargo build -p bevy_window --no-default-features --features bevy_math/libm`
1 parent a036b65 commit 914bcff

File tree

1 file changed

+3
-1
lines changed
  • crates/bevy_window/src/cursor

1 file changed

+3
-1
lines changed

crates/bevy_window/src/cursor/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ mod system_cursor;
88
pub use custom_cursor::*;
99
pub use system_cursor::*;
1010

11-
use bevy_ecs::{component::Component, reflect::ReflectComponent};
11+
use bevy_ecs::component::Component;
12+
#[cfg(feature = "bevy_reflect")]
13+
use bevy_ecs::reflect::ReflectComponent;
1214
#[cfg(feature = "bevy_reflect")]
1315
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
1416

0 commit comments

Comments
 (0)