[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15361] trunk/blender/source/blender/ blenkernel/intern/image.c: Make it so it accepts blah. tiff as a filename not just blah.tif

Kent Mein mein at cs.umn.edu
Thu Jun 26 18:43:25 CEST 2008


Revision: 15361
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15361
Author:   sirdude
Date:     2008-06-26 18:42:20 +0200 (Thu, 26 Jun 2008)

Log Message:
-----------
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

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/image.c

Modified: trunk/blender/source/blender/blenkernel/intern/image.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/image.c	2008-06-26 12:43:10 UTC (rev 15360)
+++ trunk/blender/source/blender/blenkernel/intern/image.c	2008-06-26 16:42:20 UTC (rev 15361)
@@ -857,8 +857,8 @@
 			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)) {





More information about the Bf-blender-cvs mailing list