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:
authorAntonioya <blendergit@gmail.com>2019-08-08 17:12:13 +0300
committerAntonioya <blendergit@gmail.com>2019-08-08 17:43:54 +0300
commit179e886ab3d6f8b762ff66c5bb2cb203a4adcb62 (patch)
tree3586e7f51fe1b28156604f4f6b20ee86c81f95e6 /source/blender/makesdna/DNA_gpencil_modifier_types.h
parent5ca3bc7a145f8ac1740cbf46e4701fee3a245b14 (diff)
GPencil: New Simplify modifier mode Sample and operator
This mode simplify the stroke doing a resampling of the points and generate new geometry at the distance defined. Sample function developed by @NicksBest New Resample Stroke operator This operator recreates the stroke geometry with a predefined length between points. The operator uses the same code used in Simplify modifier. Reviewers: @mendio
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_modifier_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h
index 47347753f42..3acd7d6de12 100644
--- a/source/blender/makesdna/DNA_gpencil_modifier_types.h
+++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h
@@ -502,7 +502,8 @@ typedef struct SimplifyGpencilModifierData {
short step;
/** Custom index for passes. */
int layer_pass;
- char _pad[4];
+ /* Sample length */
+ float length;
} SimplifyGpencilModifierData;
typedef enum eSimplifyGpencil_Flag {
@@ -516,6 +517,8 @@ typedef enum eSimplifyGpencil_Mode {
GP_SIMPLIFY_FIXED = 0,
/* Use RDP algorithm */
GP_SIMPLIFY_ADAPTIVE = 1,
+ /* Sample the stroke using a fixed length */
+ GP_SIMPLIFY_SAMPLE = 2,
} eSimplifyGpencil_Mode;
typedef struct OffsetGpencilModifierData {