From 1f9788b3ef7a39b214df6280aafd927e02abcac7 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Mon, 12 Oct 2015 08:39:38 -0400 Subject: [PATCH] Fixed a case where the close function was not resetting the first point. --- cadquery/CQ.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cadquery/CQ.py b/cadquery/CQ.py index 6769d40..b4c4230 100644 --- a/cadquery/CQ.py +++ b/cadquery/CQ.py @@ -1684,6 +1684,10 @@ class Workplane(CQ): s = Workplane().lineTo(1,0).lineTo(1,1).close().extrude(0.2) """ self.lineTo(self.ctx.firstPoint.x, self.ctx.firstPoint.y) + + # Need to reset the first point after closing a wire + self.ctx.firstPoint=None + return self.wire() def largestDimension(self):