diff options
author | Antonioya <blendergit@gmail.com> | 2019-08-08 11:23:05 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-08-08 15:13:01 +0300 |
commit | b9d0f33530f095fb318890dca4f8933a9afd1904 (patch) | |
tree | 3506e4f5a951d591f871474caa5292b0868ab2d0 /source/blender/blenkernel/BKE_gpencil.h | |
parent | 9d4a8cbd887f03bf1acfaae5e8e3342f3c7ed040 (diff) |
Fix T67545: GPencil - New Merge by Distance operator
Merge points when the distance is less than a predefined value.
The method to interpolate the position created a wrong merge. Now, always the secondary point is merged with the first one (merge at first), except the last point.
Diffstat (limited to 'source/blender/blenkernel/BKE_gpencil.h')
-rw-r--r-- | source/blender/blenkernel/BKE_gpencil.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_gpencil.h b/source/blender/blenkernel/BKE_gpencil.h index 9ec872f3676..3dfd6eb466c 100644 --- a/source/blender/blenkernel/BKE_gpencil.h +++ b/source/blender/blenkernel/BKE_gpencil.h @@ -197,6 +197,10 @@ void BKE_gpencil_simplify_stroke(struct bGPDstroke *gps, float factor); void BKE_gpencil_simplify_fixed(struct bGPDstroke *gps); void BKE_gpencil_subdivide(struct bGPDstroke *gps, int level, int flag); bool BKE_gpencil_trim_stroke(struct bGPDstroke *gps); +void BKE_gpencil_merge_distance_stroke(struct bGPDframe *gpf, + struct bGPDstroke *gps, + const float threshold, + const bool use_unselected); void BKE_gpencil_stroke_2d_flat(const struct bGPDspoint *points, int totpoints, |