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:
authorYimingWu <xp8110t@outlook.com>2019-11-14 21:18:23 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-11-14 21:24:49 +0300
commit91248876e517983531c44ffc1692674684c67eed (patch)
treeb2e1bf063dedac5103a8105c50cea6ca80335b18 /source/blender/makesdna/DNA_gpencil_modifier_types.h
parent8ff9eb97fb7c0e25acaa051ea8ae196c932b10b6 (diff)
GPencil MultiStroke modifier
This patch includes a modifiers that developed for NPR rendering. - MultiStroke modifier that generates multiple strokes around the original ones. Differential Revision: https://developer.blender.org/D5795
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_modifier_types.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h
index 7d407dc85bc..5fe12998998 100644
--- a/source/blender/makesdna/DNA_gpencil_modifier_types.h
+++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h
@@ -46,6 +46,7 @@ typedef enum GpencilModifierType {
eGpencilModifierType_Mirror = 14,
eGpencilModifierType_Armature = 15,
eGpencilModifierType_Time = 16,
+ eGpencilModifierType_Multiply = 17,
NUM_GREASEPENCIL_MODIFIER_TYPES,
} GpencilModifierType;
@@ -640,4 +641,40 @@ typedef struct ArmatureGpencilModifierData {
} ArmatureGpencilModifierData;
+typedef struct MultiplyGpencilModifierData {
+ GpencilModifierData modifier;
+ /** Layer name. */
+ char layername[64];
+ /** Material name. */
+ char materialname[64];
+ /** Custom index for passes. */
+ int pass_index;
+ /** Flags. */
+ int flag;
+ /** Custom index for passes. */
+ int layer_pass;
+ char _pad[4];
+
+ int flags;
+
+ int duplications;
+ float distance;
+ /* -1:inner 0:middle 1:outer */
+ float offset;
+
+ float fading_center;
+ float fading_thickness;
+ float fading_opacity;
+
+ /* in rad not deg */
+ float split_angle;
+
+ /* char _pad[4]; */
+} MultiplyGpencilModifierData;
+
+typedef enum eMultiplyGpencil_Flag {
+ GP_MULTIPLY_ENABLE_ANGLE_SPLITTING = (1 << 1),
+ GP_MULTIPLY_ENABLE_FADING = (1 << 2),
+} eMultiplyGpencil_Flag;
+
#endif /* __DNA_GPENCIL_MODIFIER_TYPES_H__ */