From b1bd81e26f6213e9ce6a7b1595ac4254dba68bb8 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Fri, 13 Mar 2020 20:55:17 -0400 Subject: [PATCH] fixed bug in is_path() --- paths.scad | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paths.scad b/paths.scad index cbd1c5d..00c9e10 100644 --- a/paths.scad +++ b/paths.scad @@ -45,9 +45,8 @@ include function is_path(list, dim=[2,3], fast=false) = fast? is_list(list) && is_vector(list[0],fast=true) : is_list(list) && is_list(list[0]) && len(list)>1 && - let( d = len(list[0]) ) - (is_undef(dim) || in_list(d, force_list(dim))) && - is_list_of(list, repeat(0,d)); + (is_undef(dim) || in_list(len(list[0]), force_list(dim))) && + is_list_of(list, repeat(0,len(list[0]))); // Function: is_closed_path()