Fixed errors with publish build in physics debug draw
This commit is contained in:
parent
cae0061ac3
commit
8743ae52fa
|
@ -36,6 +36,7 @@ namespace SHADE
|
|||
|
||||
void SHPhysicsDebugDrawSystem::PhysicsDebugDraw::Execute(double) noexcept
|
||||
{
|
||||
#ifdef SHEDITOR
|
||||
auto* physicsDebugDrawSystem = reinterpret_cast<SHPhysicsDebugDrawSystem*>(GetSystem());
|
||||
|
||||
if (!physicsDebugDrawSystem->IsDebugDrawActive())
|
||||
|
@ -109,6 +110,7 @@ namespace SHADE
|
|||
debugDrawSystem->DrawWireCube(TRS, AABB_COLOUR);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace SHADE
|
||||
|
|
Loading…
Reference in New Issue