forked from bartvdbraak/blender
fix for own error, BLI_replace_extension would strip the filename if there wasn't already an extension.
This commit is contained in:
parent
ab3295db33
commit
697726468e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user