Revision: 41858
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41858
Author: campbellbarton
Date: 2011-11-15 07:35:28 +0000 (Tue, 15 Nov 2011)
Log Message:
-----------
fix for own error, BLI_replace_extension would strip the filename if there
wasn't already an extension.
Modified Paths:
--------------
trunk/blender/source/blender/blenlib/intern/path_util.c
Modified: trunk/blender/source/blender/blenlib/intern/path_util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/path_util.c 2011-11-15
07:30:26 UTC (rev 41857)
+++ trunk/blender/source/blender/blenlib/intern/path_util.c 2011-11-15
07:35:28 UTC (rev 41858)
@@ -1414,6 +1414,10 @@
}
}
+ if (path[a] != '.') {
+ a= path_len;
+ }
+
if(a + ext_len >= maxlen)
return 0;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs