[Bf-blender-cvs] [96a3a628613] blender2.8: Hacky Fix: Changing frames by setting Scene.frame_current directly didn't update rigs in 3D viewport

Joshua Leung noreply at git.blender.org
Sat May 19 20:18:50 CEST 2018


Commit: 96a3a628613bfd592aea5fcdfbb196bb61dfacb7
Author: Joshua Leung
Date:   Sat May 19 20:18:45 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB96a3a628613bfd592aea5fcdfbb196bb61dfacb7

Hacky Fix: Changing frames by setting Scene.frame_current directly didn't update rigs in 3D viewport

Operators did not suffer from this problem as they were still just using notifiers
directly. The "proper" fix is to use the new message bus system. But, we've
got enough problems dealing with COW already as it is now... moving on.

===================================================================

M	source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 0fb44959515..2e1935f7bf3 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -884,6 +884,7 @@ static void rna_Scene_frame_update(Main *bmain, Scene *UNUSED(current_scene), Po
 {
 	Scene *scene = (Scene *)ptr->id.data;
 	BKE_sound_seek_scene(bmain, scene);
+	WM_main_add_notifier(NC_SCENE | ND_FRAME, scene);
 }
 
 static PointerRNA rna_Scene_active_keying_set_get(PointerRNA *ptr)



More information about the Bf-blender-cvs mailing list