Fixed errors with publish build in physics debug draw
This commit is contained in:
parent
337ec82dbf
commit
446db133d2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue