diff options
author | YimingWu <xp8110@outlook.com> | 2021-09-26 14:43:12 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-09-26 14:43:12 +0300 |
commit | 80f7bc6d8e7e7a5e543df5418313c04df5140c43 (patch) | |
tree | 5dc395993dd4761e3bf9282e5e3a0fadb5ae2806 /source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | |
parent | 505422220d6e172fddc8a40fabee47f5d35e0c7d (diff) |
LineArt: Smooth tolerance value for chaining.
smooth out jaggy lines with a given threshold. For each point in a stroke, the ones with in a given distance of its previous segment will be removed,
thus "zig-zag" artefacts can be cleaned up.
Reviewed By: Antonio Vazquez (antoniov)
Differential Revision: https://developer.blender.org/D12050
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c index 01488a8b2de..c5ccf1d8229 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c @@ -587,6 +587,7 @@ static void chaining_panel_draw(const bContext *UNUSED(C), Panel *panel) is_geom ? IFACE_("Geometry Threshold") : NULL, ICON_NONE); + uiItemR(layout, ptr, "smooth_tolerance", UI_ITEM_R_SLIDER, NULL, ICON_NONE); uiItemR(layout, ptr, "split_angle", UI_ITEM_R_SLIDER, NULL, ICON_NONE); } |