bugfix #24334] Filename looses all parts after a dot when saving

replacing the extension could remove the frame number added to a path when writing images, so just add the extension rather then replacing even though it gives odd names at times. eg: foo.png0001.tga
This commit is contained in:
Campbell Barton 2010-10-26 23:28:10 +00:00
parent d9757e2705
commit e3f8bcbe88

@ -832,7 +832,10 @@ int BKE_add_image_extension(char *string, int imtype)
}
if(extension) {
return BLI_replace_extension(string, FILE_MAX, extension);
/* prefer this in many cases to avoid .png.tga, but in certain cases it breaks */
/* return BLI_replace_extension(string, FILE_MAX, extension); */
strcat(string, extension);
return TRUE;
}
else {
return FALSE;