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).
This commit is contained in:
Bastien Montagne 2014-04-23 15:58:46 +02:00
parent 70fdcebb93
commit 14ab812da5
Notes: blender-bot 2023-02-14 10:46:08 +01:00
Referenced by issue #39828, Incorrect render layer visibility display for animated render layers
1 changed files with 2 additions and 0 deletions

View File

@ -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);