fix [#26532] Does not save in specified format

old bug from r6568 (or before) in BKE_write_ibuf(), when passed TAGA format it would use whatever format the image buffer already had.
expect this is exposed by updated image saving code in 2.5x.
This commit is contained in:
Campbell Barton
2011-03-18 00:12:51 +00:00
parent 35dae4f0b5
commit 25d4515181

View File

@@ -1249,8 +1249,8 @@ int BKE_write_ibuf(Scene *scene, ImBuf *ibuf, const char *name, int imtype, int
int ok;
(void)subimtype; /* quies unused warnings */
if(imtype==0) {
/* pass */
if(imtype == -1) {
/* use whatever existing image type is set by 'ibuf' */
}
else if(imtype== R_IRIS) {
ibuf->ftype= IMAGIC;