Make it so it accepts blah.tiff as a filename not just blah.tif
authorKent Mein <mein@cs.umn.edu>
Thu, 26 Jun 2008 16:42:20 +0000 (16:42 +0000)
committerKent Mein <mein@cs.umn.edu>
Thu, 26 Jun 2008 16:42:20 +0000 (16:42 +0000)
This is for bug [#15132] When saving a render .tif is appended to the saved
file even if the name contains .tiff

Kent

source/blender/blenkernel/intern/image.c

index b2557c9c07efb4248381d6016fa347c98183e975..c73279746fb909110661db33a6a12c677b3e2c72 100644 (file)
@@ -857,8 +857,8 @@ void BKE_add_image_extension(char *string, int imtype)
                        extension= ".bmp";
        }
        else if(G.have_libtiff && (imtype==R_TIFF)) {
-               if(!BLI_testextensie(string, ".tif"))
-                       extension= ".tif";
+               if(!BLI_testextensie(string, ".tif") && 
+                       !BLI_testextensie(string, ".tiff")) extension= ".tif";
        }
 #ifdef WITH_OPENEXR
        else if( ELEM(imtype, R_OPENEXR, R_MULTILAYER)) {