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:
authorAntonio Vazquez <blendergit@gmail.com>2019-08-10 18:16:12 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-08-10 18:16:12 +0300
commit7029810b04c37e8dd0a7256047038fc6f8192309 (patch)
tree7410afe5d87124d5cf8fd36c3ed7165923c0be72 /source/blender/gpencil_modifiers
parent745f773d92b6d1aa65154a899ba3a5293fa75d4d (diff)
GPencil: Add new Distance property to Simplify modifier
Before, the length variable was reused for Sample and Merge Simplify. Now, the Merge has its own distance property and variable in the modifier struct.
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c
index a27fb27d518..2168e7f07ec 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilsimplify.c
@@ -46,6 +46,7 @@ static void initData(GpencilModifierData *md)
gpmd->step = 1;
gpmd->factor = 0.0f;
gpmd->length = 0.1f;
+ gpmd->distance = 0.1f;
gpmd->layername[0] = '\0';
}
@@ -94,7 +95,7 @@ static void deformStroke(GpencilModifierData *md,
break;
}
case GP_SIMPLIFY_MERGE: {
- BKE_gpencil_merge_distance_stroke(gpf, gps, mmd->length, true);
+ BKE_gpencil_merge_distance_stroke(gpf, gps, mmd->distance, true);
break;
}
default: