Another small gameengine build tweak. Included a missing header directory.
authorKent Mein <mein@cs.umn.edu>
Mon, 9 Jan 2006 02:23:04 +0000 (02:23 +0000)
committerKent Mein <mein@cs.umn.edu>
Mon, 9 Jan 2006 02:23:04 +0000 (02:23 +0000)
I also provided a fix for tiff images.  (It was appending tif even if
it was already in the name, now it does it correctly)
(no more image.tif.tif)

Kent

source/blender/blenkernel/intern/image.c
source/gameengine/Ketsji/Makefile

index c09f68643ce848e311fdef65b238b06d041e1c6c..9973adddabc0f2a487e034505c9c894a1f007a23 100644 (file)
@@ -338,7 +338,8 @@ void addImageExtension(char *string)
                        extension= ".bmp";
        }
        else if(G.have_libtiff && (G.scene->r.imtype==R_TIFF)) {
-               extension= ".tif";
+               if(!BLI_testextensie(string, ".tif"))
+                       extension= ".tif";
        }
        
        strcat(string, extension);
index 6bcbab59da427aaa0f95007a1a7dc0c3ff6a0cd2..963031d968616faadda834725e3e6d52830ebde1 100644 (file)
@@ -58,6 +58,7 @@ CPPFLAGS += -I../Physics/Bullet
 CPPFLAGS += -I.
 CPPFLAGS += -I../Converter
 CPPFLAGS += -I../../blender/blenkernel
+CPPFLAGS += -I../../blender/blenlib
 CPPFLAGS += -I../../blender/include
 CPPFLAGS += -I../../blender/makesdna
 CPPFLAGS += -I../../blender/imbuf