From 91248876e517983531c44ffc1692674684c67eed Mon Sep 17 00:00:00 2001 From: YimingWu Date: Thu, 14 Nov 2019 19:18:23 +0100 Subject: 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 --- .../blender/makesdna/DNA_gpencil_modifier_types.h | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'source/blender/makesdna') 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__ */ -- cgit v1.2.3