From 56a5c4a077321d56c54571d3e2637750f7f984bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Pecs=C3=A9rke?= Date: Fri, 21 Jul 2023 14:07:05 +0200 Subject: [PATCH] Fix vertext range assert false positive when `associate_vertices` is passed empty split --- skin.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skin.scad b/skin.scad index 32a63e7..419706d 100644 --- a/skin.scad +++ b/skin.scad @@ -2677,7 +2677,7 @@ function associate_vertices(polygons, split, curpoly=0) = assert(len(cursplit)+polylen == len(polygons[curpoly+1]), str("Polygon ", curpoly, " has ", polylen, " vertices. Next polygon has ", len(polygons[curpoly+1]), " vertices. Split list has length ", len(cursplit), " but must have length ", len(polygons[curpoly+1])-polylen)) - assert(max(cursplit)=0, + assert(len(cursplit) == 0 || max(cursplit)=0, str("Split ",cursplit," at polygon ",curpoly," has invalid vertices. Must be in [0:",polylen-1,"]")) len(cursplit)==0 ? associate_vertices(polygons,split,curpoly+1) : let(