From 76c8f18fd437d2b9b80b5cf417edf7ef1897412d Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Thu, 25 Apr 2024 16:40:32 -0400 Subject: [PATCH] fix tutorial issue --- attachments.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attachments.scad b/attachments.scad index 8c76bb6..9add0f3 100644 --- a/attachments.scad +++ b/attachments.scad @@ -3449,7 +3449,7 @@ function _get_cp(geom) = function _force_anchor_2d(anchor) = - is_undef(anchor) ? anchor : + is_undef(anchor) || len(anchor)==2 ? anchor : assert(anchor.y==0 || anchor.z==0, "Anchor for a 2D shape cannot be fully 3D. It must have either Y or Z component equal to zero.") anchor.y==0 ? [anchor.x,anchor.z] : point2d(anchor);