Fix pulley size calculation for r_axle being None

This commit is contained in:
Florian Festi 2017-03-29 07:40:17 +02:00
parent c7490155f7
commit ff6da9eb80
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class Pulley:
pulley_OD += 2*tooth_depth * tooth_depth_scale
tooth_depth_scale *= -1
total_width = max(pulley_OD, 2*r_axle)
total_width = max(pulley_OD, 2*(r_axle or 0.0))
if self.boxes.move(total_width, total_width, move, before=True):
return