From 8743ae52fa13969cf3a7d233e97a3c8fc03fba03 Mon Sep 17 00:00:00 2001 From: Diren D Bharwani Date: Fri, 3 Mar 2023 21:38:57 +0800 Subject: [PATCH] Fixed errors with publish build in physics debug draw --- .../src/Physics/System/Routines/SHPhysicsDebugDrawRoutine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SHADE_Engine/src/Physics/System/Routines/SHPhysicsDebugDrawRoutine.cpp b/SHADE_Engine/src/Physics/System/Routines/SHPhysicsDebugDrawRoutine.cpp index efb412f7..b263df71 100644 --- a/SHADE_Engine/src/Physics/System/Routines/SHPhysicsDebugDrawRoutine.cpp +++ b/SHADE_Engine/src/Physics/System/Routines/SHPhysicsDebugDrawRoutine.cpp @@ -36,6 +36,7 @@ namespace SHADE void SHPhysicsDebugDrawSystem::PhysicsDebugDraw::Execute(double) noexcept { +#ifdef SHEDITOR auto* physicsDebugDrawSystem = reinterpret_cast(GetSystem()); if (!physicsDebugDrawSystem->IsDebugDrawActive()) @@ -109,6 +110,7 @@ namespace SHADE debugDrawSystem->DrawWireCube(TRS, AABB_COLOUR); } } +#endif } } // namespace SHADE