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:
parent
ee947f39eb
commit
ed64f8e680
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user