diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-27 03:28:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-27 03:28:10 +0400 |
commit | e3f8bcbe88543244ae0d06c53bb5f5f18fed03cb (patch) | |
tree | f653d330bbaf968e5a8712ede385955b26b633f5 /source | |
parent | d9757e270552fadc9e8543a7cccce5874520d166 (diff) |
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
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 09622b2acfe..1345c6c9b61 100644 --- a/source/blender/blenkernel/intern/image.c +++ b/source/blender/blenkernel/intern/image.c @@ -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; |