summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2016-01-22 03:24:50 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2016-01-22 03:24:50 -0200
commit1d9270d80981b70376eff4a8f275226969d5ebfd (patch)
tree30f47303f724eee23f520ca8ef163cae717de6a5
parent66a0d09e72b078da5820820aa5c6a2a7d7430507 (diff)
downloadgerbonara-1d9270d80981b70376eff4a8f275226969d5ebfd.tar.gz
gerbonara-1d9270d80981b70376eff4a8f275226969d5ebfd.tar.bz2
gerbonara-1d9270d80981b70376eff4a8f275226969d5ebfd.zip
Fix NameError on Polygon primitive rendering
-rw-r--r--gerber/am_statements.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/am_statements.py b/gerber/am_statements.py
index f67b0db..11a6187 100644
--- a/gerber/am_statements.py
+++ b/gerber/am_statements.py
@@ -463,7 +463,7 @@ class AMPolygonPrimitive(AMPrimitive):
# Offset the primitive from macro position
position = tuple([a + b for a , b in zip (position, self.position)])
# Return a renderable primitive
- return Polygon(position, vertices, self.diameter/2.,
+ return Polygon(position, self.vertices, self.diameter/2.,
rotation=self.rotation, level_polarity=level_polarity,
units=units)