Make it so it accepts blah.tiff as a filename not just blah.tif

This is for bug [#15132] When saving a render .tif is appended to the saved 
	file even if the name contains .tiff

Kent
This commit is contained in:
Kent Mein 2008-06-26 16:42:20 +00:00
parent 11cdc2a002
commit cef2867fef
1 changed files with 2 additions and 2 deletions

View 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)) {