From 3a0bfac6c6ce220d13ca25229ef78d7c75f6d217 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 20 Aug 2023 00:03:32 -0700 Subject: [PATCH] Fixed tilt() recursion error. --- transforms.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transforms.scad b/transforms.scad index 6045e9a..183e49d 100644 --- a/transforms.scad +++ b/transforms.scad @@ -766,7 +766,7 @@ function tilt(to, cp, reverse=false, p=_NO_ARG) = assert(is_vector(to, zero=false), "'to' must be a non-zero vector.") assert(is_undef(cp) || is_vector(cp), "'cp' must be a vector.") assert(is_bool(reverse)) - let( m = tilt(to=to, cp=cp, reverse=reverse) ) + let( m = rot(from=UP, to=to, cp=cp, reverse=reverse) ) p==_NO_ARG ? m : apply(m, p);