diff options
author | Cody Winchester <CodyWinch> | 2021-12-13 19:14:32 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-12-13 19:14:44 +0300 |
commit | a90c3564676649aa4a0b74112c852a75de6d3521 (patch) | |
tree | e52f0845e3fd097a3b5a3663417fd13fbf35c4a2 /source/blender/makesdna/DNA_gpencil_modifier_types.h | |
parent | 459af75d1ed586f08cd43e2aec7a3b270e809132 (diff) |
GPencil: Add randomize options to Length modifier
This patch adds a randomize factor for the start/end lengths in the Length modifier.
Reviewed By: #grease_pencil, antoniov, pepeland, HooglyBoogly
Differential Revision: https://developer.blender.org/D12928
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index f7964e1f2fa..0f69a256f56 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -492,10 +492,17 @@ typedef struct LengthGpencilModifierData { int layer_pass; /** Length. */ float start_fac, end_fac; + /** Random length factors. */ + float rand_start_fac, rand_end_fac, rand_offset; /** Overshoot trajectory factor. */ float overshoot_fac; + /** (first element is the index) random values. */ + int seed; + /** How many frames before recalculate randoms. */ + int step; /** Modifier mode. */ int mode; + char _pad[4]; /* Curvature parameters. */ float point_density; float segment_influence; @@ -509,6 +516,7 @@ typedef enum eLengthGpencil_Flag { GP_LENGTH_INVERT_MATERIAL = (1 << 3), GP_LENGTH_USE_CURVATURE = (1 << 4), GP_LENGTH_INVERT_CURVATURE = (1 << 5), + GP_LENGTH_USE_RANDOM = (1 << 6), } eLengthGpencil_Flag; typedef enum eLengthGpencil_Type { |