1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-20 13:31:30 +02:00

avoided warning when found_at_i == 0

This commit is contained in:
Justin Lin
2017-05-22 14:55:41 +08:00
parent 96edad476c
commit fb0b2b4a66

View File

@@ -49,7 +49,7 @@ module polysections(sections, triangles = "SOLID") {
let(
found_at_i = search_at(f_sect, l_sect[0], leng_pts_sect)
)
found_at_i == -1 ? false :
found_at_i <= 0 ? false :
l_sect == concat(
[for(i = [found_at_i:leng_pts_sect-1]) f_sect[i]],
[for(i = [0:found_at_i - 1]) f_sect[i]]