Hooked up 'disable deactivation mode' via debugMode

This commit is contained in:
ejcoumans
2006-10-17 01:59:02 +00:00
parent 15840d7bb0
commit 1fe414d98a

View File

@@ -121,6 +121,11 @@ void btDiscreteDynamicsWorld::synchronizeMotionStates()
void btDiscreteDynamicsWorld::stepSimulation(float timeStep, int numSubsteps)
{
//process some debugging flags
if (getDebugDrawer())
{
gDisableDeactivation = (getDebugDrawer()->getDebugMode() & btIDebugDraw::DBG_NoDeactivation) != 0;
}
if (!btFuzzyZero(timeStep) && numSubsteps)
{