summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/apertures.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-01-30 15:58:20 +0100
committerjaseg <git@jaseg.de>2022-01-30 15:58:20 +0100
commitfd9e0d00792256aed5c30d13abf894df31a357c4 (patch)
tree4ba1fad9473e881bf21cec36ceca3d9958c10ba1 /gerbonara/gerber/apertures.py
parentc8bf837a4b5dcc6242b7dac383f09e9390deca35 (diff)
downloadgerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.tar.gz
gerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.tar.bz2
gerbonara-fd9e0d00792256aed5c30d13abf894df31a357c4.zip
Fix aperture macro outline primitive rendering
Diffstat (limited to 'gerbonara/gerber/apertures.py')
-rw-r--r--gerbonara/gerber/apertures.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gerbonara/gerber/apertures.py b/gerbonara/gerber/apertures.py
index ab4a1a1..ab62077 100644
--- a/gerbonara/gerber/apertures.py
+++ b/gerbonara/gerber/apertures.py
@@ -43,6 +43,7 @@ class Aperture:
_ : KW_ONLY
unit : str = None
attrs : dict = field(default_factory=dict)
+ original_number : str = None
@property
def hole_shape(self):
@@ -329,9 +330,10 @@ class ApertureMacroInstance(Aperture):
return self.macro.name
def primitives(self, x, y, unit=None, polarity_dark=True):
- return self.macro.to_graphic_primitives(
+ out = list(self.macro.to_graphic_primitives(
offset=(x, y), rotation=self.rotation,
- parameters=self.parameters, unit=unit, polarity_dark=polarity_dark)
+ parameters=self.parameters, unit=unit, polarity_dark=polarity_dark))
+ return out
def dilated(self, offset, unit=MM):
return replace(self, macro=self.macro.dilated(offset, unit))