fix for own error, BLI_replace_extension would strip the filename if there wasn't...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 15 Nov 2011 07:35:28 +0000 (07:35 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 15 Nov 2011 07:35:28 +0000 (07:35 +0000)
source/blender/blenlib/intern/path_util.c

index 7c7d51e..08d9dfa 100644 (file)
@@ -1414,6 +1414,10 @@ int BLI_replace_extension(char *path, size_t maxlen, const char *ext)
                }
        }
 
+       if (path[a] != '.') {
+               a= path_len;
+       }
+
        if(a + ext_len >= maxlen)
                return 0;