forked from SolidCode/MCAD
-
Notifications
You must be signed in to change notification settings - Fork 200
Open
Description
Somehow the check got broken or out of order. The if statement would probably work fine if it were below the ternary operator setting the circular_pitch, or it should check for the diametral_pitch being undef as well.
Lines 321 to 325 in bd0a7ba
| if (circular_pitch==undef) | |
| echo("MCAD ERROR: gear module needs either a diametral_pitch or circular_pitch"); | |
| //Convert diametrial pitch to our native circular pitch | |
| circular_pitch = (circular_pitch!=undef?circular_pitch:pi/diametral_pitch); |
Metadata
Metadata
Assignees
Labels
No labels