From 6a993594130c42adffa9e2d58757b66b48755aad Mon Sep 17 00:00:00 2001 From: Garret Fick Date: Sat, 16 Jan 2016 12:28:46 +0800 Subject: Fix converting polygons to outlines for macros --- gerber/am_statements.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gerber') 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) -- cgit