[Bf-blender-cvs] [14ab812] master: Fix T39828: Incorrect render layer visibility display for animated render layers.

Bastien Montagne noreply at git.blender.org
Wed Apr 23 16:23:23 CEST 2014


Commit: 14ab812da55ad08bc00f90fe0b9efa91c60daa71
Author: Bastien Montagne
Date:   Wed Apr 23 15:58:46 2014 +0200
https://developer.blender.org/rB14ab812da55ad08bc00f90fe0b9efa91c60daa71

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).

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

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 1d83206..53e1686 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);




More information about the Bf-blender-cvs mailing list