From 5f72a1212514ee7f8a795b53b1d1d180329660df Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Wed, 6 Oct 2021 07:32:50 +0100 Subject: [PATCH] Nuts shown on jacks and fuseholders only shown threaded when exploded. --- vitamins/fuseholder.scad | 4 ++-- vitamins/jack.scad | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vitamins/fuseholder.scad b/vitamins/fuseholder.scad index 2931e9e..6ec65c0 100644 --- a/vitamins/fuseholder.scad +++ b/vitamins/fuseholder.scad @@ -68,7 +68,7 @@ module fuseholder(thickness) { //! Fuseholder with nut in place for specified pa colour = grey(40); vflip() translate_z(thickness) - explode(height) { + explode(height, explode_children = true) { color(colour) { tube(or = nut_d / 2, ir = thread_d / 2, h = nut_flange_t, center = false); @@ -79,7 +79,7 @@ module fuseholder(thickness) { //! Fuseholder with nut in place for specified pa circle(d = thread_d); } } - if(show_threads) + if(show_threads && exploded()) female_metric_thread(thread_d, thread_p, nut_t, false, colour = colour); } // diff --git a/vitamins/jack.scad b/vitamins/jack.scad index 2db8e3e..0427c91 100644 --- a/vitamins/jack.scad +++ b/vitamins/jack.scad @@ -77,12 +77,12 @@ module jack_4mm(colour, thickness, display_colour = false) { //! Draw a 4mm jack spade(spade4p8l, spade); } translate_z(-thickness) - explode(-length) + explode(-length, explode_children = true) vflip() { color(silver) tube(ir = thread_d / 2, or = nut_d / 2, h = nut_t, center = false); - if(show_threads) + if(show_threads && exploded()) female_metric_thread(thread_d, thread_p, nut_t, false, colour = silver); } }