From ed64f8e6803534b2fddc8cea7d0ed3c23a8ac3e9 Mon Sep 17 00:00:00 2001 From: Joel Ebel Date: Thu, 31 May 2018 23:51:32 -0400 Subject: [PATCH] Make panel features optional, and default off So that the Thingiverse customizer will not include the demo panel features, but they are in the code as examples. --- files/Ultimate_Box.scad | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/files/Ultimate_Box.scad b/files/Ultimate_Box.scad index 45e50b9..e3c91ec 100644 --- a/files/Ultimate_Box.scad +++ b/files/Ultimate_Box.scad @@ -151,6 +151,8 @@ BShell = 1; // [0:No, 1:Yes] FPanL = 1; // [0:No, 1:Yes] // - Back panel BPanL = 1; // [0:No, 1:Yes] +// - Panel holes and text +PanelFeatures = 0; // [0:No, 1:Yes] /* [Hidden] */ @@ -806,12 +808,16 @@ module FPanL() { linear_extrude(height=PanelThick) { difference() { Panel(); - FPanelHoles(); + if (PanelFeatures) { + FPanelHoles(); + } } } } color(TextColor) { - FPanelText(); + if (PanelFeatures) { + FPanelText(); + } } } } @@ -833,12 +839,16 @@ module BPanL() { linear_extrude(height=PanelThick) { difference() { Panel(); - BPanelHoles(); + if (PanelFeatures) { + BPanelHoles(); + } } } } color(TextColor) { - BPanelText(); + if (PanelFeatures) { + BPanelText(); + } } } }