diff options
author | jaseg <git@jaseg.de> | 2022-01-23 14:41:59 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-01-23 14:41:59 +0100 |
commit | 4ed83580963669e29305c45b104b78a22ef3e86c (patch) | |
tree | b120256fdd0df45340e0c5d8ae61496f3613ae05 /gerbonara/gerber/aperture_macros/parse.py | |
parent | deb2bb2bbfc13e6dce8adf493221a4fe4929a344 (diff) | |
download | gerbonara-4ed83580963669e29305c45b104b78a22ef3e86c.tar.gz gerbonara-4ed83580963669e29305c45b104b78a22ef3e86c.tar.bz2 gerbonara-4ed83580963669e29305c45b104b78a22ef3e86c.zip |
Fix a whole bunch of SVG export bugs
Diffstat (limited to 'gerbonara/gerber/aperture_macros/parse.py')
-rw-r--r-- | gerbonara/gerber/aperture_macros/parse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/gerber/aperture_macros/parse.py b/gerbonara/gerber/aperture_macros/parse.py index 2126e0f..3a6f6e1 100644 --- a/gerbonara/gerber/aperture_macros/parse.py +++ b/gerbonara/gerber/aperture_macros/parse.py @@ -119,7 +119,7 @@ class ApertureMacro: primitive_defs = [ prim.to_gerber(unit) for prim in self.primitives ] return '*\n'.join(comments + variable_defs + primitive_defs) - def to_graphic_primitives(self, offset, rotation, parameters : [float], unit=None): + def to_graphic_primitives(self, offset, rotation, parameters : [float], unit=None, polarity_dark=True): variables = dict(self.variables) for number, value in enumerate(parameters, start=1): if number in variables: @@ -127,7 +127,7 @@ class ApertureMacro: variables[number] = value for primitive in self.primitives: - yield from primitive.to_graphic_primitives(offset, rotation, variables, unit) + yield from primitive.to_graphic_primitives(offset, rotation, variables, unit, polarity_dark) def rotated(self, angle): dup = copy.deepcopy(self) |