From 14ab812da55ad08bc00f90fe0b9efa91c60daa71 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 23 Apr 2014 15:58:46 +0200 Subject: Fix T39828: Incorrect render layer visibility display for animated render layers. More like a workaround, current depsgraph does not really allow for animated layers, esp. when we alwys expect at least one to be enabled (same issue as with basic Scene layers). --- source/blender/makesrna/intern/rna_scene.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender') diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 1d83206f17f..53e1686e323 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -2260,6 +2260,8 @@ void rna_def_render_layer_common(StructRNA *srna, int scene) else RNA_def_property_boolean_funcs(prop, NULL, "rna_RenderLayer_layer_set"); if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_glsl_update"); else RNA_def_property_clear_flag(prop, PROP_EDITABLE); + /* this seems to be too much trouble with depsgraph updates/etc. currently (20140423) */ + RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); prop = RNA_def_property(srna, "layers_zmask", PROP_BOOLEAN, PROP_LAYER); RNA_def_property_boolean_sdna(prop, NULL, "lay_zmask", 1); -- cgit v1.2.3