mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-19 10:09:39 +00:00
Merge pull request #428 from adrianVmariano/master
This commit is contained in:
commit
73af7ea116
1 changed files with 3 additions and 1 deletions
|
@ -310,7 +310,9 @@ function _screw_info_english(diam, threadcount, head, thread, drive) =
|
||||||
[2, [ 3, 1.5, undef, undef, undef]],
|
[2, [ 3, 1.5, undef, undef, undef]],
|
||||||
],
|
],
|
||||||
entry = struct_val(UTS_socket, diam),
|
entry = struct_val(UTS_socket, diam),
|
||||||
hexdepth = is_def(entry[3]) ? entry[3] : if_def(diam) ? diam/2 : undef,
|
hexdepth = is_def(entry[3]) ? entry[3]
|
||||||
|
: is_def(diam) ? diam/2
|
||||||
|
: undef,
|
||||||
drive_size = drive=="hex" ? [["drive_size",inch*entry[1]], ["drive_depth",inch*hexdepth]] :
|
drive_size = drive=="hex" ? [["drive_size",inch*entry[1]], ["drive_depth",inch*hexdepth]] :
|
||||||
drive=="torx" ? [["drive_size",entry[2]],["drive_depth",inch*entry[4]]] : []
|
drive=="torx" ? [["drive_size",entry[2]],["drive_depth",inch*entry[4]]] : []
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue