From 4f9853514170cb8210bad65d98a84c1b9a305a07 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Wed, 15 May 2019 21:38:54 -0700 Subject: [PATCH] Removed remove_undefs() --- scripts/make_all_docs.sh | 2 +- shapes2d.scad | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/make_all_docs.sh b/scripts/make_all_docs.sh index ab8c775..887f8e9 100755 --- a/scripts/make_all_docs.sh +++ b/scripts/make_all_docs.sh @@ -3,7 +3,7 @@ if [[ $# > 0 ]]; then PREVIEW_LIBS="$@" else - PREVIEW_LIBS="compat attachments math arrays vectors affine coords geometry triangulation quaternions hull constants edges transforms primitives shapes masks shapes2d paths beziers roundcorners walls metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive polyhedra debug" + PREVIEW_LIBS="common errors attachments math arrays vectors affine coords geometry triangulation quaternions hull constants edges transforms primitives shapes masks shapes2d paths beziers roundcorners walls metric_screws threading involute_gears sliders joiners linear_bearings nema_steppers wiring phillips_drive torx_drive polyhedra debug" fi dir="$(basename $PWD)" diff --git a/shapes2d.scad b/shapes2d.scad index cf63764..2961c93 100644 --- a/shapes2d.scad +++ b/shapes2d.scad @@ -350,7 +350,7 @@ module glued_circles(r=undef, d=undef, spread=10, tangent=30) function star(n, r, d, ir, id, step, realign=false) = let( r = get_radius(r=r, d=d), - count = len(remove_undefs([ir,id,step])), + count = num_defined([ir,id,step]), stepOK = is_undef(step) || (step>1 && step