1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-10 09:24:01 +02:00

Fixed axial lead min pitch bug.

This commit is contained in:
Chris Palmer
2021-09-11 11:20:37 +01:00
parent edb1eccbf1
commit 4c926c529b

View File

@@ -57,7 +57,7 @@ function ax_res_colour(type) = type[7]; //! Body colour
module orientate_axial(length, height, pitch, wire_d) { // Orient horizontal or vertical and add the wires module orientate_axial(length, height, pitch, wire_d) { // Orient horizontal or vertical and add the wires
min_pitch = ceil((length + 1) / inch(0.1)) * inch(0.1); min_pitch = ceil((length + 1) / inch(0.1)) * inch(0.1);
lead_pitch = pitch ? pitch : min_pitch; lead_pitch = pitch ? pitch : min_pitch;
if(lead_pitch >= min_pitch) { if(lead_pitch > min_pitch - eps) {
not_on_bom() not_on_bom()
wire_link(wire_d, lead_pitch, height); wire_link(wire_d, lead_pitch, height);