From 22e512b287cd6f977353eeefaa30f51e9c693467 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 13 Apr 2020 19:10:00 -0700 Subject: [PATCH] Fixed assert that broke stroke() for endcap paths. --- shapes2d.scad | 4 ++-- version.scad | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shapes2d.scad b/shapes2d.scad index 2d34207..2483297 100644 --- a/shapes2d.scad +++ b/shapes2d.scad @@ -121,8 +121,8 @@ module stroke( endcap1 = first_defined([endcap1, endcaps, "round"]); endcap2 = first_defined([endcap2, endcaps, "round"]); - assert(is_bool(endcap1) || is_string(endcap1)); - assert(is_bool(endcap2) || is_string(endcap2)); + assert(is_bool(endcap1) || is_string(endcap1) || is_path(endcap1)); + assert(is_bool(endcap2) || is_string(endcap2) || is_path(endcap2)); endcap_width1 = first_defined([endcap_width1, endcap_width, 3.5]); endcap_width2 = first_defined([endcap_width2, endcap_width, 3.5]); diff --git a/version.scad b/version.scad index 821a3b9..c83708e 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,267]; +BOSL_VERSION = [2,0,268]; // Section: BOSL Library Version Functions