[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59568] branches/soc-2013-paint/source/ blender/makesrna/intern/rna_scene.c: Fix [#36289] Not change children object on freez layer when change frame.

Antony Riakiotakis kalast at gmail.com
Tue Aug 27 21:26:10 CEST 2013


Revision: 59568
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59568
Author:   psy-fi
Date:     2013-08-27 19:26:10 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
Fix [#36289] Not change children object on freez layer when change frame.

When hiding the layer of an object, switching to a different fram, and showing again that layer, things like object's parenting were not handled... Just set do_time option of DAG_on_visible_update() to True when updating layers.

Note: maybe we could re-enable layers animation... not sure though ;)

Modified Paths:
--------------
    branches/soc-2013-paint/source/blender/makesrna/intern/rna_scene.c

Modified: branches/soc-2013-paint/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- branches/soc-2013-paint/source/blender/makesrna/intern/rna_scene.c	2013-08-27 19:26:07 UTC (rev 59567)
+++ branches/soc-2013-paint/source/blender/makesrna/intern/rna_scene.c	2013-08-27 19:26:10 UTC (rev 59568)
@@ -487,7 +487,8 @@
 static void rna_Scene_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr)
 {
 	rna_Scene_view3d_update(bmain, scene, ptr);
-	DAG_on_visible_update(bmain, FALSE);
+	/* We need do_time here, else we can have update issues like [#36289]... */
+	DAG_on_visible_update(bmain, true);
 }
 
 static void rna_Scene_fps_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))




More information about the Bf-blender-cvs mailing list