forked from bartvdbraak/blender
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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user