Fixed errors with publish build in physics debug draw

This commit is contained in:
Diren D Bharwani 2023-03-03 21:39:59 +08:00
parent 337ec82dbf
commit 446db133d2
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