Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-10-27 03:28:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-27 03:28:10 +0400
commite3f8bcbe88543244ae0d06c53bb5f5f18fed03cb (patch)
treef653d330bbaf968e5a8712ede385955b26b633f5 /source
parentd9757e270552fadc9e8543a7cccce5874520d166 (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.c5
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;