gears.py: fix rack with draw_guides=False
This commit is contained in:
parent
b0fb04762b
commit
bc1d9ce19e
|
@ -183,8 +183,8 @@ def generate_rack_points(tooth_count, pitch, addendum, pressure_angle,
|
||||||
|
|
||||||
# Draw line representing the pitch circle of infinite diameter
|
# Draw line representing the pitch circle of infinite diameter
|
||||||
guide_path = None
|
guide_path = None
|
||||||
if draw_guides:
|
|
||||||
p = []
|
p = []
|
||||||
|
if draw_guides:
|
||||||
p.append( (x_lhs + 0.5 * tab_length, 0) )
|
p.append( (x_lhs + 0.5 * tab_length, 0) )
|
||||||
p.append( (x_rhs - 0.5 * tab_length, 0) )
|
p.append( (x_rhs - 0.5 * tab_length, 0) )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue