Skip to content

fix(field): stop the knife deleting the object when the cut fails - #163

Merged
dustenhubbard merged 2 commits into
mainfrom
fix/knife-cut-atomic
Oct 7, 2026
Merged

dustenhubbard merged 2 commits into
mainfrom
fix/knife-cut-atomic

Conversation

@dustenhubbard

Copy link
Copy Markdown
Member

Cutting with the knife deleted the selected traces before it looked at the result, so a trace that cannot be cut as a polygon, such as an outline that crosses itself, vanished with no message. The cut is now refused up front, and a click with no drag or an empty result leaves the section alone. A press of another mouse button mid-stroke no longer cancels the cut.

Closes #48

A cut deleted the selected traces before it looked at the result, so a
trace that cannot be cut as a polygon (a self-crossing outline, which the
shapely library refuses) was removed with nothing put back. The cut is
now refused up front, a click with no drag leaves the section alone, and
an empty result is refused. A press of another mouse button mid-stroke
no longer cancels the cut and opens the field menu over the object; a
knife option turns that back on. Issue #48.
@dustenhubbard dustenhubbard added the reviewed A human authorized this merge (vcs-guard Gate 1 evidence) label Oct 7, 2026
@dustenhubbard
dustenhubbard merged commit bda6ef2 into main Oct 7, 2026
7 checks passed
@dustenhubbard
dustenhubbard deleted the fix/knife-cut-atomic branch October 7, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed A human authorized this merge (vcs-guard Gate 1 evidence)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deletion option for cutting tool

1 participant