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.
This commit is contained in:
Joel Ebel 2018-05-31 23:51:32 -04:00
parent ee947f39eb
commit ed64f8e680

View File

@ -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,16 +808,20 @@ module FPanL() {
linear_extrude(height=PanelThick) {
difference() {
Panel();
if (PanelFeatures) {
FPanelHoles();
}
}
}
}
color(TextColor) {
if (PanelFeatures) {
FPanelText();
}
}
}
}
}
/* BPanL module
@ -833,16 +839,20 @@ module BPanL() {
linear_extrude(height=PanelThick) {
difference() {
Panel();
if (PanelFeatures) {
BPanelHoles();
}
}
}
}
color(TextColor) {
if (PanelFeatures) {
BPanelText();
}
}
}
}
}
// Top shell