diff options
Diffstat (limited to 'UVtools.Core/Gerber/Apertures/MacroAperture.cs')
-rw-r--r-- | UVtools.Core/Gerber/Apertures/MacroAperture.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/UVtools.Core/Gerber/Apertures/MacroAperture.cs b/UVtools.Core/Gerber/Apertures/MacroAperture.cs index 1f4cea1..af403cb 100644 --- a/UVtools.Core/Gerber/Apertures/MacroAperture.cs +++ b/UVtools.Core/Gerber/Apertures/MacroAperture.cs @@ -21,9 +21,9 @@ public class MacroAperture : Aperture #endregion #region Constructor - public MacroAperture() : base("Macro") { } + public MacroAperture(GerberDocument document) : base(document, "Macro") { } - public MacroAperture(int index, Macro macro) : base(index, "Macro") + public MacroAperture(GerberDocument document, int index, Macro macro) : base(document, index, "Macro") { Macro = macro; } @@ -31,9 +31,10 @@ public class MacroAperture : Aperture public override void DrawFlashD3(Mat mat, SizeF xyPpmm, PointF at, MCvScalar color, LineType lineType = LineType.EightConnected) { - foreach (var macro in Macro) + foreach (var primitive in Macro) { - macro.DrawFlashD3(mat, xyPpmm, at, color, lineType); + //if(primitive.Name == "Comment") continue; + primitive.DrawFlashD3(mat, xyPpmm, at, color, lineType); } } }
\ No newline at end of file |