Skip to content

Refactor sketch undo recorder and fix crossing-edge redo node bug#182

Merged
trailcode merged 1 commit into
mainfrom
Trailcode/sketch-undo-refactor
Jul 9, 2026
Merged

Refactor sketch undo recorder and fix crossing-edge redo node bug#182
trailcode merged 1 commit into
mainfrom
Trailcode/sketch-undo-refactor

Conversation

@trailcode

@trailcode trailcode commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Refactor sketch undo/redo into sketch_op_recorder.h / .cpp with a file-local Sketch_op_delta; remove public Sketch_delta and dual PIMPL cross-piercing.
  • Fix crossing-edge undo/redo promoting the intersection node to permanent by recording and restoring each note_curr_node node's permanent flag.

Closes #181

Test plan

  • Build EzyCad_tests (Release, VS 2026)
  • ctest -C Release -R "Sketch_test.Undo|Redo_two_crossing|AddNode"
  • Manual: two crossing lines → undo ×2 → redo ×2; intersection has no permanent + marker

@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@trailcode trailcode merged commit 992a12e into main Jul 9, 2026
3 checks passed
@trailcode trailcode deleted the Trailcode/sketch-undo-refactor branch July 9, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor sketch undo recorder and fix crossing-edge redo permanent node

1 participant