[Bf-blender-cvs] [f0dd7dd4c01] blender2.8: Mark view layer renderability and scene single layer render as non-animatable

Sergey Sharybin noreply at git.blender.org
Mon Jul 23 11:54:53 CEST 2018


Commit: f0dd7dd4c01d2c1b2c4d9a6cbec9bfab1566b795
Author: Sergey Sharybin
Date:   Mon Jul 23 11:42:44 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBf0dd7dd4c01d2c1b2c4d9a6cbec9bfab1566b795

Mark view layer renderability and scene single layer render as non-animatable

We can not support animation of those flags reliably in the pipeline, so just
mark them as non-animatable.

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

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 339d3841b30..dd08be4c943 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -4255,6 +4255,7 @@ static void rna_def_scene_render_view(BlenderRNA *brna)
 
 	prop = RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_negative_sdna(prop, NULL, "viewflag", SCE_VIEW_DISABLE);
+	RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
 	RNA_def_property_ui_text(prop, "Enabled", "Disable or enable the render view");
 	RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
 }
@@ -5412,6 +5413,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
 	prop = RNA_def_property(srna, "use_single_layer", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_SINGLE_LAYER);
 	RNA_def_property_ui_text(prop, "Render Single Layer", "Only render the active layer");
+	RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
 	RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
 
 	/* views (stereoscopy et al) */



More information about the Bf-blender-cvs mailing list