GP: Draw: Stroke Trim

New edit mode operator and post-processing brush option.

Trim works on a single GP stroke. It removes trailing points before and after the first intersection (or loop) nearest to the start of the stroke.
This commit is contained in:
2019-02-26 16:04:27 +00:00
parent cb8614e398
commit 65de468396
12 changed files with 190 additions and 3 deletions

View File

@@ -4007,6 +4007,7 @@ class VIEW3D_MT_edit_gpencil(Menu):
layout.operator("gpencil.stroke_smooth", text="Smooth")
layout.operator("gpencil.stroke_subdivide", text="Subdivide")
layout.menu("VIEW3D_MT_gpencil_simplify")
layout.operator("gpencil.stroke_trim", text="Trim")
layout.separator()
@@ -5674,6 +5675,7 @@ class VIEW3D_MT_gpencil_edit_specials(Menu):
layout.operator("gpencil.stroke_subdivide", text="Subdivide")
layout.operator("gpencil.stroke_simplify_fixed", text="Simplify")
layout.operator("gpencil.stroke_simplify", text="Simplify Adaptive")
layout.operator("gpencil.stroke_trim", text="Trim")
layout.separator()
layout.menu("GPENCIL_MT_separate", text="Separate")