mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-25 07:57:39 -05:00
fix(labels): stale a plan when its label inputs change before Apply
The etched label text is made at capture from the drawing's name, label box, bends and source offset and the plate's grain, but the freshness record did not include them, so Apply could etch an outdated label. When the confirmed settings etch labels, capture now records them and Apply returns Stale if any changed; with labels off nothing new is compared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b227321aee
commit
fbf155adf3
5 files changed
+97
-9
No files matched your search
@@ -678,7 +678,9 @@ replans. Each plate is compared exactly with the state captured with its request
|
||||
part list instance and order, plate quantity/size/quadrant and settings, cutoff
|
||||
definitions, and for every part its program reference and exact content (an
|
||||
in-place edit counts), drawing program, cutoff classification and cut pins, pose bits,
|
||||
lead-in/lock/pins-off flags, settings (reference and exact content) and bounds. Any
|
||||
lead-in/lock/pins-off flags, settings (reference and exact content) and bounds. When the
|
||||
confirmed settings etch part labels, it also compares each drawing's name, label box, bends
|
||||
and source offset and the plate's grain, which the etched text is made from. Any
|
||||
difference on any plate returns `Stale` and changes nothing, so a proposal that
|
||||
changes a plate can be applied once; an unchanged (no-op) proposal stays current.
|
||||
A malformed live program is also `Stale`, not an exception. A part repeated on
|
||||
|
||||
+3
-1
@@ -63,7 +63,9 @@ plans from, so the label is emitted as scribe (etch) moves like any other mark:
|
||||
counts in cut time, posts through the etch path and never enters nesting or collision geometry
|
||||
(marks are not material). Nothing changes while the option is off, and parts planned before it was
|
||||
turned on keep no label until planned again. The plan fingerprint records the mode, so changing it
|
||||
makes an earlier plan stale.
|
||||
makes an earlier plan stale. While labels are on, so does changing a drawing's name, label box,
|
||||
bends or source offset, or the plate's grain, between planning and Apply. Once applied, the etched
|
||||
label stays as planned until the plate is planned again.
|
||||
|
||||
Settings saved before the mode existed held an on/off `etchPartLabels` value (in the nest's cutting
|
||||
parameters, the desktop settings and a machine thickness's cutting settings). It meant the full
|
||||
|
||||
Reference in new issue
Block a user