From 631ddc5acc1369b66450ebf7ef1f1e894f5e4223 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Sat, 29 Sep 2018 16:42:33 +0200 Subject: GP: New parameters for instance modifier: Material and On Top Now it's possible to define what material is used in the generated strokes and if the strokes are put in front of the original (default) or keep the original in front. Before, the generated strokes have been always on top of the original because they were drawn later. --- source/blender/makesdna/DNA_gpencil_modifier_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h') diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index ae341b24e41..26b3cf934d4 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -211,6 +211,8 @@ typedef struct InstanceGpencilModifierData { int pass_index; /* custom index for passes */ char layername[64]; /* layer name */ + int mat_rpl; /* material replace (0 keep default) */ + char pad[4]; } InstanceGpencilModifierData; typedef enum eInstanceGpencil_Flag { @@ -218,6 +220,7 @@ typedef enum eInstanceGpencil_Flag { GP_INSTANCE_RANDOM_ROT = (1 << 1), GP_INSTANCE_INVERT_LAYER = (1 << 2), GP_INSTANCE_INVERT_PASS = (1 << 3), + GP_INSTANCE_KEEP_ONTOP = (1 << 4), } eInstanceGpencil_Flag; typedef struct BuildGpencilModifierData { -- cgit v1.2.3