Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2005-10-30 10:25:36 +0300
committerErwin Coumans <blender@erwincoumans.com>2005-10-30 10:25:36 +0300
commitb7a465b437fd7d51e30c46290abef60c907821c7 (patch)
treebad1507156a1987beb34e312f709ede286fb2ffa /source/gameengine
parent281f236e6ea4838d121b0872475520fac36d03f7 (diff)
when recording physics keyframes, always run at a fixed framerate (not variable/real-time)
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_KetsjiEngine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
index 3c2f3e04aac..a3a4a556956 100644
--- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
+++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
@@ -1204,6 +1204,11 @@ void KX_KetsjiEngine::SetUseFixedTime(bool bUseFixedTime)
void KX_KetsjiEngine::SetGame2IpoMode(bool game2ipo,int startFrame)
{
m_game2ipo = game2ipo;
+ if (game2ipo)
+ {
+ //when recording physics keyframes, always run at a fixed framerate
+ m_bFixedTime = true;
+ }
m_currentFrame = startFrame;
}