Skip to content

Commit

Permalink
Merge pull request #219 from ncalbrecht/patch-1
Browse files Browse the repository at this point in the history
Bugfix for Polygon Aperture Macros
  • Loading branch information
phsilva committed Nov 2, 2021
2 parents 7225725 + e4ad0c4 commit 0b6ccc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gerber/am_statements.py
Expand Up @@ -547,7 +547,7 @@ def to_gerber(self, settings=None):
return fmt.format(**data)

def to_primitive(self, units):
return Polygon(self.position, self.vertices, self.diameter / 2.0, 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=self.rotation, units=units, level_polarity=self._level_polarity)


class AMMoirePrimitive(AMPrimitive):
Expand Down

0 comments on commit 0b6ccc3

Please sign in to comment.