Fix running headless to be nearly completely headless.

This commit is contained in:
Benelot
2016-09-18 01:03:41 +02:00
parent 51e51ca848
commit 062236af70
2 changed files with 4 additions and 2 deletions

View File

@@ -843,6 +843,7 @@ struct CommonTimeWarpBase: public CommonRigidBodyBase {
debugDraw(m_dynamicsWorld->getDebugDrawer()->getDebugMode());
}
}
mIsHeadless = gIsHeadless;
}
void resetCamera() { // reset the camera to its original position
float dist = 41;
@@ -895,6 +896,7 @@ struct CommonTimeWarpBase: public CommonRigidBodyBase {
bool mPhysicsStepsPerSecondUpdated;
bool mFramesPerSecondUpdated;
bool mSolverIterationsUpdated;
bool mIsHeadless;
};
#endif //COMMON_TIME_WARP_BASE_H