From 5f37eddc1b57ee37ab30e7ed984c333074cf7129 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Tue, 10 Mar 2020 00:17:40 -0700 Subject: [PATCH] Fixed . --- attachments.scad | 6 ++---- version.scad | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/attachments.scad b/attachments.scad index 5e46cde..132dc8d 100644 --- a/attachments.scad +++ b/attachments.scad @@ -527,6 +527,8 @@ function find_anchor(anchor, geom) = // Description: // Returns true if the given space-delimited string of tag names should currently be shown. function attachment_is_shown(tags) = + assert(!is_undef($tags_shown)) + assert(!is_undef($tags_hidden)) let( tags = _str_char_split(tags, " "), shown = !$tags_shown || any([for (tag=tags) in_list(tag, $tags_shown)]), @@ -790,11 +792,7 @@ module attachable( $parent_orient = orient; $parent_geom = geom; $parent_size = attach_geom_size(geom); - $attach_to = undef; - $tags_shown = undef; - $tags_hidden = undef; - if (attachment_is_shown($tags)) { if (is_undef($color)) { children(0); diff --git a/version.scad b/version.scad index e30fe69..b1383ee 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,179]; +BOSL_VERSION = [2,0,180]; // Section: BOSL Library Version Functions