BGE: Fix animations update when scene is suspended.
This commit is contained in:
parent
59ba52628f
commit
75e4e4b67f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue