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) <noreply@anthropic.com>
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user