fix(ui): reverse sequence order so cutting starts near origin

The sequencer returns parts ordered from exit point inward. Reverse
so part 1 is nearest the origin and cutting works outward.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-16 00:58:35 -04:00
parent 507dff95b8
commit 1a3e18795b

View File

@@ -461,8 +461,8 @@ namespace OpenNest.Forms
var ordered = sequencer.Sequence(plate.Parts.ToList(), plate);
plate.Parts.Clear();
foreach (var s in ordered)
plate.Parts.Add(s.Part);
for (var i = ordered.Count - 1; i >= 0; i--)
plate.Parts.Add(ordered[i].Part);
}
public void CalculateCurrentPlateCutTime()