Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-08-25 22:45:04 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-08-25 22:45:04 +0400
commit74b770bc898d745f3d377c451fe263529acbc46c (patch)
treeaebb839b1df34bbe3747ef783a96401f08190578 /source/blender/makesrna/intern/rna_scene.c
parent6c14f641f37b0f72e2ecc23cc3b37913b7455892 (diff)
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 ;)
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 1f7ddb9ab4d..0b158d69f58 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -487,7 +487,8 @@ static void rna_Scene_view3d_update(Main *bmain, Scene *UNUSED(scene_unused), Po
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))