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:
Ajabep 2026-01-11 10:08:56 +01:00
commit e2aa0c2a83
2 changed files with 17 additions and 5 deletions

View file

@ -18,16 +18,25 @@ render() {
CLIP=true
TEXT=false
LOGO=false
EARS=false
;;
name)
CLIP=false
TEXT=true
LOGO=false
EARS=false
;;
logo)
CLIP=false
TEXT=false
LOGO=true
EARS=false
;;
ears)
CLIP=false
TEXT=false
LOGO=false
EARS=true
;;
*)
echo 'fatal: invalid part' >&2
@ -50,6 +59,7 @@ render() {
-D "RENDER_COLOR_CLIP=${CLIP}" \
-D "RENDER_COLOR_TEXT=${TEXT}" \
-D "RENDER_COLOR_LOGO=${LOGO}" \
-D "RENDER_COLOR_EARS=${EARS}" \
-o "stls/c3cat-bottle-clip-v${VERSION}_BOTTLE${BOTTLE_FORMAT}_${NAME}_${PART}.stl" \
c3cat-bottle-clip/c3cat-bottle-clip.scad
}
@ -59,7 +69,7 @@ cd "$(dirname $0)"
for BOTTLE_FORMAT in 0 1 2
do
echo "Generating bottle format ${BOTTLE_FORMAT}"
for PART in body logo name
for PART in body logo name ears
do
render "$NAME" "$PART" "$BOTTLE_FORMAT"
sleep 1