From 0764a3660f30ca4123c48616f00aa7ac08c449d5 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 1 Oct 2016 23:30:32 +0200 Subject: [PATCH] gears.p: More fixes for racks --- boxes/gears.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boxes/gears.py b/boxes/gears.py index a391cec..404683a 100644 --- a/boxes/gears.py +++ b/boxes/gears.py @@ -386,6 +386,9 @@ class Gears(): def drawPoints(self, lines, kerfdir=1): + if not lines: + return + if kerfdir != 0: lines = kerf(lines, self.boxes.burn*kerfdir) @@ -614,7 +617,7 @@ class Gears(): if self.boxes.move(width, height, move, before=True): return - self.boxes.cc(callback, None, s+b, s+b) + self.boxes.cc(callback, None) self.boxes.moveTo(width/2.0, base_height+addendum, -180) self.drawPoints(points) self.drawPoints(guide_points, kerfdir=0)