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-09-29 17:42:33 +0300
committerAntonioya <blendergit@gmail.com>2018-09-29 17:54:16 +0300
commit631ddc5acc1369b66450ebf7ef1f1e894f5e4223 (patch)
tree9750a57b6176d676d6cb75a2ad7c9ab2a7826cda /source/blender/makesdna/DNA_gpencil_modifier_types.h
parent2ca67de9609e297ed608469fd6a0d3a9dd9cad2f (diff)
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.
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_modifier_types.h3
1 files changed, 3 insertions, 0 deletions
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 {