fix(sheet): keep a stored fold working when its fixed point drifts off the sheet (#370) (#537)

A stored fold whose fixed point drifts off the sheet after a parameter change keeps the side the point lies on and shows a warning instead of breaking the timeline. A new fold still refuses a fixed point off the sheet, atomically. Un-ignores the #370 regression test. Fixes #370.

Co-authored-by: jonaswre <jonas.wrede@beyondit.gmbh>
This commit is contained in:
Jonas Wrede authored and GitHub committed 2026-10-13 04:05:01 -04:00
1 parent f9c19ade16
commit c727e2d0c2
4 files changed
+70 -10

No files matched your search

+1 -1
View File
@@ -505,7 +505,7 @@ pub(super) fn sheet_eval(
return Err(DocError::Invalid("refold the sheet before folding it".into()));
}
let n0 = sh.flanges.len();
sh.add_fold(a, b, ang, rr, position, *flip, *fixed)?;
sh.add_fold(a, b, ang, rr, position, *flip, *fixed, warning)?;
tag_flanges(sh, n0, f.id);
rebuild_sheet(st, i)
}