From ac59be0a7176b3175fdd7d6208205bea8390d854 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Mon, 7 Apr 2025 17:57:46 +0200 Subject: [PATCH] Fix debug prints --- ecs/src/world.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ecs/src/world.rs b/ecs/src/world.rs index efd5172..3d0ec8f 100644 --- a/ecs/src/world.rs +++ b/ecs/src/world.rs @@ -211,6 +211,7 @@ impl World { entity: Entity, component: T, ) -> Result<()> { + #[cfg(debug_assertions)] println!("insert component {}", T::debug_name()); let change = ComponentChange::Added(TypeId::of::(), Box::new(component)); @@ -231,6 +232,7 @@ impl World { &mut self, entity: Entity, ) -> Result<()> { + #[cfg(debug_assertions)] println!("remove component {}", T::debug_name()); let change = ComponentChange::Removed(TypeId::of::());