Commit: 7d31777d71f2221085f04a410cc601fcfbe47b3d
Author: Porteries Tristan
Date: Wed Oct 14 22:53:25 2015 +0200
Branches: blender-v2.76-release
https://developer.blender.org/rB7d31777d71f2221085f04a410cc601fcfbe47b3d
BGE: Fix animations update when scene is suspended.
===================================================================
M source/gameengine/Ketsji/KX_KetsjiEngine.cpp
===================================================================
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
index 72c5125..9d6fae6 100644
--- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
+++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp
@@ -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();
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs