From 8b60567372486a391e10aace3face8e7b83c7137 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Wed, 11 Dec 2024 22:14:03 +0000 Subject: [PATCH] Debug only --- util/godot/classes/shape_3d.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/godot/classes/shape_3d.h b/util/godot/classes/shape_3d.h index ecd3c8374..7950795cd 100644 --- a/util/godot/classes/shape_3d.h +++ b/util/godot/classes/shape_3d.h @@ -18,11 +18,13 @@ using namespace godot; namespace zylann::godot { +#ifdef DEBUG_ENABLED inline void set_shape_3d_debug_color(Shape3D &shape, const Color color) { #if GODOT_VERSION_MAJOR == 4 && GODOT_VERSION_MINOR >= 4 shape.set_debug_color(color); #endif } +#endif } // namespace zylann::godot