fix: persist simplified entities back to FileListItem

Without this, simplified geometry was lost on file switch and
not included in the final GetDrawings output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 23:50:07 -04:00
parent 0a294934ae
commit df008081d1

View File

@@ -411,7 +411,14 @@ namespace OpenNest.Forms
entityView1.ZoomToFit();
entityView1.Invalidate();
// Update entity count label
var item = CurrentItem;
if (item != null)
{
item.Entities = entities;
item.EntityCount = entities.Count;
item.Bounds = entities.GetBoundingBox();
}
lblEntityCount.Text = $"{entities.Count} entities";
}