Fix release build

This commit is contained in:
hodasemi 2025-04-07 17:47:26 +02:00
parent e9b81f8217
commit 11b613f492

View file

@ -69,8 +69,10 @@ impl std::fmt::Debug for EntityObject {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut t = f.debug_struct("EntityObject"); let mut t = f.debug_struct("EntityObject");
t.field("debug_name", &self.debug_name) #[cfg(debug_assertions)]
.field("gltf_file", &self.gltf_file) t.field("debug_name", &self.debug_name);
t.field("gltf_file", &self.gltf_file)
.field("activation_state", &self.activation_state) .field("activation_state", &self.activation_state)
.field("entity_id", &self.entity_id); .field("entity_id", &self.entity_id);