mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 16:36:01 -05:00
Correct CAD docs and comments that disagree with the code
This commit is contained in:
1 parent
3b245fbc7b
commit
017963d5a5
8 files changed
+35
-31
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user