Correct CAD docs and comments that disagree with the code

This commit is contained in:
SoftFever committed 2026-11-10 00:54:31 +08:00
1 parent 3b245fbc7b
commit 017963d5a5
8 files changed
+35 -31

No files matched your search

+2 -2
View File
@@ -5162,8 +5162,8 @@ TEST_CASE("unknown identifier fails recompute", "[CadDocument][variables]")
// The checkpoint -> mutate -> recompute -> undo-on-failure pattern is what both the GUI and
// Mcp/McpToolsCad.cpp use to keep a bad edit out of the document. It only works if the snapshot
// covers `variables` as well as `features`: undo() used to restore features alone, so a bad variable
// survived the rollback and every later recompute failed — the document was left unusable.
// covers `variables` as well as `features`: an undo() that restored features alone would let a bad
// variable survive the rollback, and every later recompute would fail — the document left unusable.
TEST_CASE("undo rolls back a bad variable, not just features", "[CadDocument][variables]")
{
CadDocument doc;