Added support for outputting bmp's
[blender.git] / source / blender / imbuf / intern / writeimage.c
index 64df437679ab66c84a4d2c732a548abf27a4e29e..d6133a1919311abd1a0e2fbd6db950cc8ec87086 100644 (file)
@@ -91,6 +91,14 @@ short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags)
                }
        }
 
+        if (IS_bmp(ibuf)) {
+                ok = imb_savebmp(ibuf,file,flags);
+                if (ok) {
+                        close (file);
+                        return (ok);
+                }
+        }
+
        if (IS_tga(ibuf)) {
                ok = imb_savetarga(ibuf,file,flags);
                if (ok) {