From f4696f231e1dd6151cecee22bdbbc9be18ce0d4a Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 17 Jun 2019 08:26:21 +0800 Subject: [PATCH] fix wrong scope --- src/along_with.scad | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/along_with.scad b/src/along_with.scad index 1b780326..bd915359 100644 --- a/src/along_with.scad +++ b/src/along_with.scad @@ -194,9 +194,9 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") } } else if(method == "EULER_ANGLE") { + angs = angles_defined ? angles : euler_angle_path_angles($children); + if($children == 1) { - angs = angles_defined ? angles : euler_angle_path_angles($children); - for(i = [0:leng_points_minus_one]) { euler_angle_align(i, angs) children(0); } @@ -205,8 +205,6 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") for(i = [0:min(leng_points, $children) - 1]) { euler_angle_align(i, angs) children(i); } - } } - } \ No newline at end of file