From 8f1a3fb6b749d99f9184e0d423f951681c6d4aff Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Tue, 24 Mar 2026 13:07:37 -0400 Subject: [PATCH] fix: filter rapid-move entities from SplitDrawingForm preview Rapid-layer entities (connecting lines between cutouts and perimeter) were being rendered in the split preview. Filter them out, matching the same pattern used in DrawingSplitter. Co-Authored-By: Claude Opus 4.6 (1M context) --- OpenNest/Forms/SplitDrawingForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenNest/Forms/SplitDrawingForm.cs b/OpenNest/Forms/SplitDrawingForm.cs index a982232..06f0398 100644 --- a/OpenNest/Forms/SplitDrawingForm.cs +++ b/OpenNest/Forms/SplitDrawingForm.cs @@ -40,7 +40,8 @@ public partial class SplitDrawingForm : Form null, pnlPreview, new object[] { true }); _drawing = drawing; - _drawingEntities = ConvertProgram.ToGeometry(drawing.Program); + _drawingEntities = ConvertProgram.ToGeometry(drawing.Program) + .Where(e => e.Layer != SpecialLayers.Rapid).ToList(); _drawingBounds = drawing.Program.BoundingBox(); Text = $"Split Drawing: {drawing.Name}";