[Bf-blender-cvs] [7d31777] blender-v2.76a-release: BGE: Fix animations update when scene is suspended.
Porteries Tristan
noreply at git.blender.org
Thu Oct 29 11:39:21 CET 2015
Commit: 7d31777d71f2221085f04a410cc601fcfbe47b3d
Author: Porteries Tristan
Date: Wed Oct 14 22:53:25 2015 +0200
Branches: blender-v2.76a-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();
More information about the Bf-blender-cvs
mailing list