Gear: don't allow less than 2 teeth

This commit is contained in:
Florian Festi 2020-02-01 15:30:53 +01:00
parent 0394d418c1
commit eeb1baf352
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ class Gears(Boxes):
# adjust to the variables you want in the local scope
t = self.thickness
self.teeth1 = max(2, self.teeth1)
self.teeth2 = max(2, self.teeth2)
if not self.shaft2:
self.shaft2 = self.shaft1
if not self.dpercentage2: