From bc1d9ce19ea3aa9719b6da33c8cf75078287127f Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 1 Oct 2016 22:35:11 +0200 Subject: [PATCH] gears.py: fix rack with draw_guides=False --- boxes/gears.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/gears.py b/boxes/gears.py index 00cb916..a391cec 100644 --- a/boxes/gears.py +++ b/boxes/gears.py @@ -183,8 +183,8 @@ def generate_rack_points(tooth_count, pitch, addendum, pressure_angle, # Draw line representing the pitch circle of infinite diameter guide_path = None + p = [] if draw_guides: - p = [] p.append( (x_lhs + 0.5 * tab_length, 0) ) p.append( (x_rhs - 0.5 * tab_length, 0) )