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:
authorAntonioya <blendergit@gmail.com>2018-10-25 17:50:42 +0300
committerAntonioya <blendergit@gmail.com>2018-10-25 17:50:42 +0300
commit4c2561a87777d821dfb5f44463b4629a2206a9f2 (patch)
tree98f29a1fb3a73eba92ed3000277f278d09aed1f4 /source/blender/makesrna/intern/rna_gpencil.c
parent2b6253175ea63e787cde8bb3c6b7fa16c17e9247 (diff)
GP: Include option to render layers by view layer
This allows to make composition getting each grease pencil layer in a different render output.
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil.c')
-rw-r--r--source/blender/makesrna/intern/rna_gpencil.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index de31c884b6b..33100c21180 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -1100,6 +1100,11 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Pass Index", "Index number for the \"Layer Index\" pass");
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");
+ prop = RNA_def_property(srna, "viewlayer_render", PROP_STRING, PROP_NONE);
+ RNA_def_property_string_sdna(prop, NULL, "viewlayername");
+ RNA_def_property_ui_text(prop, "ViewLayer",
+ "Only include Layer in this View Layer render output (leave blank to include always)");
+
/* Flags */
prop = RNA_def_property(srna, "hide", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_LAYER_HIDE);