BGE: Fix animations update when scene is suspended.

This commit is contained in:
Porteries Tristan 2015-10-14 22:53:25 +02:00
parent 59ba52628f
commit 75e4e4b67f
1 changed files with 4 additions and 0 deletions

View File

@ -1019,6 +1019,10 @@ void KX_KetsjiEngine::GetSceneViewport(KX_Scene *scene, KX_Camera* cam, RAS_Rect
void KX_KetsjiEngine::UpdateAnimations(KX_Scene *scene)
{
if (scene->IsSuspended()) {
return;
}
// Handle the animations independently of the logic time step
if (GetRestrictAnimationFPS()) {
double anim_timestep = 1.0 / KX_GetActiveScene()->GetAnimationFPS();