bugfix 4324

Old issue... Blender saves jpg RGBA files. That's unsupported in all
programs except Blender, always a source of problems with that feature.

Now it just falls back to saving 24 bits when the "RGBA" option is set.
This commit is contained in:
2006-06-13 18:51:52 +00:00
parent 9028f6cdcd
commit adff7aacad

View File

@@ -431,6 +431,7 @@ int BKE_write_ibuf(ImBuf *ibuf, char *name, int imtype, int subimtype, int quali
else if ELEM(imtype, R_JPEG90, R_MOVIE) {
if(quality < 10) quality= 90;
ibuf->ftype= JPG|quality;
if(ibuf->depth==32) ibuf->depth= 24; /* unsupported feature only confuses other s/w */
}
else ibuf->ftype= TGA;