Skip to content

Fix crash on redo after collated control point / vertex drags - #5392

Merged
kduske merged 2 commits into
masterfrom
5379-crash-patch-undo
Aug 5, 2026
Merged

kduske merged 2 commits into
masterfrom
5379-crash-patch-undo

Conversation

@kduske

@kduske kduske commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

A single drag produces one NodeHandleCommand per mouse-move event, and the command processor collates them into just the first one. That command's recorded target handle positions were never updated to the drag's actual endpoint, so reselecting them on redo could look up a handle that no longer exists and crash (#5379).

In addition to fixing the crash, we add more test coverage for ControlPointTool.

Closes #5379.

kduske added 2 commits August 3, 2026 23:53
A single drag produces one NodeHandleCommand per mouse-move event, and the
command processor collates them into just the first one. That command's recorded
target handle positions were never updated to the drag's actual endpoint, so
reselecting them on redo could look up a handle that no longer exists and crash
(#5379).

doCollateWith now adopts the collated-away command's target positions.
@kduske
kduske merged commit eacfcd0 into master Aug 5, 2026
7 checks passed
@kduske
kduske deleted the 5379-crash-patch-undo branch August 5, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trenchbroom crash when undoing point changes for a patch

1 participant