diff --git a/Cargo.toml b/Cargo.toml index adaaaba..d51659c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,6 @@ bevy = { version = "0.13", features = [ "trace_tracy", "bevy_winit", "bevy_asset", - "bevy_gizmos", ] } bevy_mod_debugdump = "0.10.0" bevy-inspector-egui = "0.23.2" @@ -40,7 +39,7 @@ rand = "0.8" [features] default = [] -debug = [] +debug = ["bevy/bevy_gizmos"] compatibility = [] # [patch.crates-io] diff --git a/src/ecs/light.rs b/src/ecs/light.rs index a8a81c3..c0da19d 100644 --- a/src/ecs/light.rs +++ b/src/ecs/light.rs @@ -4,7 +4,6 @@ use bevy::{ render::{color::Color, texture::ColorAttachment, view::RenderLayers}, }; -#[cfg(feature = "debug")] use bevy::reflect::Reflect; #[derive(Component)] @@ -18,8 +17,7 @@ pub struct ShadowView2d { pub attachment: ColorAttachment, } -#[derive(Component, Default, Clone, Copy)] -#[cfg_attr(feature = "debug", derive(Reflect))] +#[derive(Component, Default, Clone, Copy, Reflect)] pub struct PointLight2d { pub color: Color, pub intensity: f32, diff --git a/src/lib.rs b/src/lib.rs index c888f15..1eea445 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ use bevy::app::{App, Plugin}; use ecs::IncandescentECSPlugin; use render::IncandescentRenderPlugin; +#[cfg(feature = "debug")] pub mod debug; pub mod ecs; pub mod render;