From 446db133d2091fcf7d6a4b0cf9f2ba8a32e0c5b3 Mon Sep 17 00:00:00 2001 From: Diren D Bharwani Date: Fri, 3 Mar 2023 21:39:59 +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