mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-05 21:47:39 +02:00
Merge pull request #428 from adrianVmariano/master
This commit is contained in:
@@ -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]]] : []
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user