Fixed errors with publish build in physics debug draw

This commit is contained in:
Diren D Bharwani 2023-03-03 21:38:57 +08:00
parent cae0061ac3
commit 8743ae52fa
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ namespace SHADE
void SHPhysicsDebugDrawSystem::PhysicsDebugDraw::Execute(double) noexcept void SHPhysicsDebugDrawSystem::PhysicsDebugDraw::Execute(double) noexcept
{ {
#ifdef SHEDITOR
auto* physicsDebugDrawSystem = reinterpret_cast<SHPhysicsDebugDrawSystem*>(GetSystem()); auto* physicsDebugDrawSystem = reinterpret_cast<SHPhysicsDebugDrawSystem*>(GetSystem());
if (!physicsDebugDrawSystem->IsDebugDrawActive()) if (!physicsDebugDrawSystem->IsDebugDrawActive())
@ -109,6 +110,7 @@ namespace SHADE
debugDrawSystem->DrawWireCube(TRS, AABB_COLOUR); debugDrawSystem->DrawWireCube(TRS, AABB_COLOUR);
} }
} }
#endif
} }
} // namespace SHADE } // namespace SHADE