diff options
author | Antonioya <blendergit@gmail.com> | 2018-09-29 17:42:33 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-09-29 17:54:16 +0300 |
commit | 631ddc5acc1369b66450ebf7ef1f1e894f5e4223 (patch) | |
tree | 9750a57b6176d676d6cb75a2ad7c9ab2a7826cda /source/blender/makesdna | |
parent | 2ca67de9609e297ed608469fd6a0d3a9dd9cad2f (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')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 3 |
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 { |