Skip to content

Commit

Permalink
Changed: Some slight issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
443eb9 committed Mar 6, 2024
1 parent 8821679 commit 4a12f5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ 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"
rand = "0.8"

[features]
default = []
debug = []
debug = ["bevy/bevy_gizmos"]
compatibility = []

# [patch.crates-io]
Expand Down
4 changes: 1 addition & 3 deletions src/ecs/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use bevy::{
render::{color::Color, texture::ColorAttachment, view::RenderLayers},
};

#[cfg(feature = "debug")]
use bevy::reflect::Reflect;

#[derive(Component)]
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a12f5d

Please sign in to comment.