diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-07-02 12:34:35 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-07-02 12:34:35 +0800 |
commit | 0107d159b5a04c282478ceb4c51fdd03af3bd8c9 (patch) | |
tree | 66fa8253c1d9e693a03c67399b58763ec8498e35 | |
parent | 14747494b89178372c65aad1e6ef8fa431e7f24c (diff) | |
download | gerbonara-0107d159b5a04c282478ceb4c51fdd03af3bd8c9.tar.gz gerbonara-0107d159b5a04c282478ceb4c51fdd03af3bd8c9.tar.bz2 gerbonara-0107d159b5a04c282478ceb4c51fdd03af3bd8c9.zip |
Fix crash with polygon aperture macros
-rw-r--r-- | gerber/am_statements.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/am_statements.py b/gerber/am_statements.py index 6cb90dc..ed9f71e 100644 --- a/gerber/am_statements.py +++ b/gerber/am_statements.py @@ -536,7 +536,7 @@ class AMPolygonPrimitive(AMPrimitive): return fmt.format(**data) def to_primitive(self, units): - return Polygon(self.position, self.vertices, self.diameter / 2.0, rotation=math.radians(self.rotation), units=units, level_polarity=self._level_polarity) + return Polygon(self.position, self.vertices, self.diameter / 2.0, 0, rotation=math.radians(self.rotation), units=units, level_polarity=self._level_polarity) class AMMoirePrimitive(AMPrimitive): |