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:
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_modifier_types.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h
index c91afa58cb1..d3429329ef6 100644
--- a/source/blender/makesdna/DNA_gpencil_modifier_types.h
+++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h
@@ -56,6 +56,7 @@ typedef enum GpencilModifierType {
eGpencilModifierType_Lineart = 19,
eGpencilModifierType_Length = 20,
eGpencilModifierType_Weight = 21,
+ eGpencilModifierType_Dash = 22,
/* Keep last. */
NUM_GREASEPENCIL_MODIFIER_TYPES,
} GpencilModifierType;
@@ -507,6 +508,39 @@ typedef enum eLengthGpencil_Type {
GP_LENGTH_ABSOLUTE = 1,
} eLengthGpencil_Type;
+typedef struct DashGpencilModifierSegment {
+ char name[64];
+ /* For path reference. */
+ struct DashGpencilModifierData *dmd;
+ int dash;
+ int gap;
+ float radius;
+ float opacity;
+ int mat_nr;
+ int _pad;
+} DashGpencilModifierSegment;
+
+typedef struct DashGpencilModifierData {
+ GpencilModifierData modifier;
+ /** Material for filtering. */
+ struct Material *material;
+ /** Layer name. */
+ char layername[64];
+ /** Custom index for passes. */
+ int pass_index;
+ /** Flags. */
+ int flag;
+ /** Custom index for passes. */
+ int layer_pass;
+
+ int dash_offset;
+
+ DashGpencilModifierSegment *segments;
+ int segments_len;
+ int segment_active_index;
+
+} DashGpencilModifierData;
+
typedef struct MirrorGpencilModifierData {
GpencilModifierData modifier;
struct Object *object;