Fixed a bug in generate_assets script

This commit is contained in:
Deve 2018-04-17 23:57:10 +02:00
parent c72cf74138
commit c23f1bbc5b

View File

@ -181,6 +181,9 @@ convert_image()
return return
fi fi
SCALE_CMD=""
QUALITY_CMD=""
if [ $W -gt $TEXTURE_SIZE ] || [ $H -gt $TEXTURE_SIZE ]; then if [ $W -gt $TEXTURE_SIZE ] || [ $H -gt $TEXTURE_SIZE ]; then
if [ $W -gt $H ]; then if [ $W -gt $H ]; then
SCALED_W=$TEXTURE_SIZE SCALED_W=$TEXTURE_SIZE