Create the csg dir at the correct place in render_part

This commit is contained in:
Matt McWilliams 2021-10-18 14:15:01 -04:00
parent 9e267517d5
commit 88446c4d28
1 changed files with 2 additions and 1 deletions

View File

@ -35,9 +35,9 @@ FILES=(
SIZES=( "50ft" "100ft" ) SIZES=( "50ft" "100ft" )
mkdir -p "${DIST}" mkdir -p "${DIST}"
if [ $STEP = true ]; then if [ $STEP = true ]; then
mkdir -p "${CSG}" mkdir -p "${CSG}"
mkdir -p "${CSG}/${SIZE}_${V}/"
fi fi
render_part () { render_part () {
@ -99,6 +99,7 @@ render_part () {
fi fi
if [ ${STEP} = true ] && [[ "${FILE}" == "spiral" ]]; then if [ ${STEP} = true ] && [[ "${FILE}" == "spiral" ]]; then
mkdir -p "${CSG}/${SIZE}_${V}/"
start=`date +%s` start=`date +%s`
if [[ "${SIZE}" == "100ft" ]]; then if [[ "${SIZE}" == "100ft" ]]; then
openscad --csglimit=20000000 -o "$csg" -D "PART=\"${FILE}\"" -D "FN=800" "${scad}" openscad --csglimit=20000000 -o "$csg" -D "PART=\"${FILE}\"" -D "FN=800" "${scad}"