has_alpha is not a conversion
authorRudolf Polzer <divVerent@alientrap.org>
Thu, 5 Aug 2010 13:19:42 +0000 (15:19 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Thu, 5 Aug 2010 13:19:42 +0000 (15:19 +0200)
misc/tools/cached-converter.sh

index 71709e5fe1b1f43b2e81f97c18f63a8fb97e3d09..c500136ff86b6ebeefd62cc35d31aa2882677cee 100755 (executable)
@@ -172,6 +172,7 @@ for F in "$@"; do
                        ;;
                *.png|*.tga)
                        cached true has_alpha "$F" "" "$F.hasalpha" ""
+                       conv=false
                        if [ -s "$F.hasalpha" ]; then
                                cached "$do_dds"  reduce_rgba_dds    "$F" ""                  "dds/${F%.*}.dds" ""                  "$dds_flags"
                                cached "$do_jpeg" reduce_rgba_jpeg2  "$F" ""                  "${F%.*}.jpg"     "${F%.*}_alpha.jpg" "$jpeg_qual_rgb" "$jpeg_qual_a"