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 <xp8110@outlook.com>2022-02-22 07:54:35 +0300
committerYimingWu <xp8110@outlook.com>2022-02-22 07:54:35 +0300
commit2234bfbcdb14299aa2ed28ed3ee6682c6d9a7a0c (patch)
tree909692b6362d5c49e0908f397e78ceeb409da985 /source/blender/makesdna/DNA_gpencil_modifier_types.h
parent0f2e0a25e13d2d67f3d08d068ba11e255794bb6b (diff)
GPencil: Simplify sample modifier improvements.
1. Now handles cyclic strokes correctly. 2. Added a sharp threshold value to allow preservation of sharp corners. Reviewed By: Antonio Vazquez (antoniov), Aleš Jelovčan (frogstomp) Ref D14044
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_gpencil_modifier_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h
index 64099de5a5e..e30dd4e1c8f 100644
--- a/source/blender/makesdna/DNA_gpencil_modifier_types.h
+++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h
@@ -649,9 +649,10 @@ typedef struct SimplifyGpencilModifierData {
int layer_pass;
/** Sample length */
float length;
+ /** Sample sharp threshold */
+ float sharp_threshold;
/** Merge distance */
float distance;
- char _pad[4];
} SimplifyGpencilModifierData;
typedef enum eSimplifyGpencil_Flag {