Add the HAS_EARS var and rename the RENDER_EARS to RENDER_COLOR_EARS
Add the HAS_EARS variable to be able to generate bottle clips without ears. Rename the RENDER_EARS to RENDER_COLOR_EARS
This commit is contained in:
parent
6364985e55
commit
e2aa0c2a83
2 changed files with 17 additions and 5 deletions
|
|
@ -39,6 +39,8 @@ FONT = ""; // empty string is for Orbitron font
|
|||
// Format of the bottle clip you want to create.
|
||||
FORMAT = 3; // [0=Club Mate 50cL, 1=Long Neck as 25cL Club Mate or Fritz-kola, 2=Euroform 2, 3=Steinie bottles]
|
||||
|
||||
// Append ears to the bottle clip
|
||||
HAS_EARS = true;
|
||||
|
||||
/* [Render] */
|
||||
// Whether to render the clip, the body.
|
||||
|
|
@ -47,8 +49,8 @@ RENDER_COLOR_CLIP = true;
|
|||
RENDER_COLOR_TEXT = true;
|
||||
// Whether to render the logo part.
|
||||
RENDER_COLOR_LOGO = true;
|
||||
// Add ears to the clip.
|
||||
USE_TINY_EARS = true;
|
||||
// Whether to render the cat ears part.
|
||||
RENDER_COLOR_EARS = true;
|
||||
|
||||
// Set the number of facets for circles.
|
||||
$fn = 360;
|
||||
|
|
@ -82,7 +84,7 @@ scale([0.2, 0.2, 0.2]) {
|
|||
font=FONT,
|
||||
logo=LOGO_FILE,
|
||||
format=FORMAT,
|
||||
has_ears=USE_TINY_EARS);
|
||||
has_ears=HAS_EARS);
|
||||
}
|
||||
|
||||
module render_bottle_clip(name="", font="", logo="", format=0, has_ears=true) {
|
||||
|
|
@ -122,7 +124,7 @@ module render_bottle_clip(name="", font="", logo="", format=0, has_ears=true) {
|
|||
}
|
||||
|
||||
// Render ears if requested
|
||||
if (has_ears) {
|
||||
if (has_ears && RENDER_COLOR_EARS) {
|
||||
ears(ht=ht, ru=ru, rl=rl);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue