mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-07-31 05:10:40 +02:00
Fix backwards compatibility nut_sides arg
* nut_sides must be last argument * default value = 0. With 120 as default, we cannot set nut_sides to 120 while simultaneously setting fn to something different from 120.
This commit is contained in:
@@ -48,8 +48,8 @@ module bolt(designator, turns, higbee_arc=20, fn=120, table=THREAD_TABLE) {
|
||||
};
|
||||
};
|
||||
|
||||
module nut(designator, turns, Douter, higbee_arc=20, fn=120, nut_sides=120, table=THREAD_TABLE) {
|
||||
nut_sides = nut_sides == 120 ? fn : nut_sides;
|
||||
module nut(designator, turns, Douter, higbee_arc=20, fn=120, table=THREAD_TABLE, nut_sides=0) {
|
||||
nut_sides = nut_sides == 0 ? fn : nut_sides;
|
||||
union() {
|
||||
specs = thread_specs(str(designator, "-int"), table=table);
|
||||
P = specs[0]; Dsupport = specs[2];
|
||||
|
Reference in New Issue
Block a user