avoid one redundant motionstate synchronization

minor warning fix
This commit is contained in:
erwin.coumans
2009-08-11 23:50:59 +00:00
parent d67aa861f2
commit d7c7c0c9ef
3 changed files with 9 additions and 8 deletions

View File

@@ -343,9 +343,10 @@ int btDiscreteDynamicsWorld::stepSimulation( btScalar timeStep,int maxSubSteps,
synchronizeMotionStates();
}
}
synchronizeMotionStates();
} else
{
synchronizeMotionStates();
}
clearForces();