[Bf-blender-cvs] [75e4e4b] master: BGE: Fix animations update when scene is suspended.

Porteries Tristan noreply at git.blender.org
Wed Oct 14 22:52:13 CEST 2015


Commit: 75e4e4b67fac4220f732d1ace4793f9872de156e
Author: Porteries Tristan
Date:   Wed Oct 14 22:53:25 2015 +0200
Branches: master
https://developer.blender.org/rB75e4e4b67fac4220f732d1ace4793f9872de156e

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();




More information about the Bf-blender-cvs mailing list