Reserved some Bullet 2.x constraint data.
[blender.git] / source / gameengine / Ketsji / KX_KetsjiEngine.cpp
index 4d6b70a0b3c9df737157504a49d1adb6743e0b7c..6a54c613cc0b9373c23b0ad1bdbc421cf0aba38b 100644 (file)
@@ -254,7 +254,7 @@ void KX_KetsjiEngine::SetSceneConverter(KX_ISceneConverter* sceneconverter)
  * Blender into Ketsji native (realtime) format also sets up the
  * graphics context
  */
-void KX_KetsjiEngine::StartEngine()
+void KX_KetsjiEngine::StartEngine(bool clearIpo)
 {
        m_clockTime = m_kxsystem->GetTimeInSeconds();
        m_frameTime = m_kxsystem->GetTimeInSeconds();
@@ -266,7 +266,7 @@ void KX_KetsjiEngine::StartEngine()
        
        if (m_game2ipo)
        {
-               m_sceneconverter->ResetPhysicsObjectsAnimationIpo();
+               m_sceneconverter->ResetPhysicsObjectsAnimationIpo(clearIpo);
                m_sceneconverter->WritePhysicsObjectToAnimationIpo(m_currentFrame);
        }