mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 12:03:31 +00:00
Polygonal Lasso selects anchor points inside a loop of straight segments. Each click sets a vertex, and a segment from the last vertex follows the pointer. A double-click, Enter or a click on the first vertex closes the loop. Backspace or Delete removes the last vertex, Escape drops the loop, and Shift keeps the next segment to 45-degree steps from the Constrain Angle. Shift held at the first click adds to the selection and Alt subtracts from it, as with the Lasso. A loop of fewer than three vertices selects nothing and records no undo step. The tool is listed under its own heading in All Tools and under Object › Plug-ins › Polygonal Lasso, with no default toolbar slot or shortcut. On close it uses the Lasso's test for which anchor and mesh points are inside (even-odd), now shared as lasso_select; the Lasso itself behaves as before. Touch mode now counts Polygonal Lasso and Enclosing Lasso as selection tools, as it counts the Lasso, so the two-finger tap switches from them to the drawing tool chosen last. Fixes #4736