summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-01-16 12:28:46 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-01-16 12:28:46 +0800
commit6a993594130c42adffa9e2d58757b66b48755aad (patch)
tree7ffb45354a740415b9657a52207af7bb18b46b33 /gerber
parent83ae0670d11b5f5ef8ba3a6c362b7129a9e31ab3 (diff)
downloadgerbonara-6a993594130c42adffa9e2d58757b66b48755aad.tar.gz
gerbonara-6a993594130c42adffa9e2d58757b66b48755aad.tar.bz2
gerbonara-6a993594130c42adffa9e2d58757b66b48755aad.zip
Fix converting polygons to outlines for macros
Diffstat (limited to 'gerber')
-rw-r--r--gerber/am_statements.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gerber/am_statements.py b/gerber/am_statements.py
index e484b10..b448139 100644
--- a/gerber/am_statements.py
+++ b/gerber/am_statements.py
@@ -386,9 +386,11 @@ class AMOutlinePrimitive(AMPrimitive):
lines = []
prev_point = rotate_point(self.points[0], self.rotation)
for point in self.points[1:]:
- cur_point = rotate_point(self.points[0], self.rotation)
+ cur_point = rotate_point(point, self.rotation)
lines.append(Line(prev_point, cur_point, Circle((0,0), 0)))
+
+ prev_point = cur_point
return Outline(lines, units=units)