diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-01-16 12:28:46 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-01-16 12:28:46 +0800 |
commit | 6a993594130c42adffa9e2d58757b66b48755aad (patch) | |
tree | 7ffb45354a740415b9657a52207af7bb18b46b33 /gerber | |
parent | 83ae0670d11b5f5ef8ba3a6c362b7129a9e31ab3 (diff) | |
download | gerbonara-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.py | 4 |
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) |