diff options
Diffstat (limited to 'gerbonara/gerber/apertures.py')
-rw-r--r-- | gerbonara/gerber/apertures.py | 6 |
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)) |