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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-22 17:10:37 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-22 17:10:37 +0400
commit61dddcb800963390b348c977d307bec3620a443a (patch)
tree32f9451d7c56e637f94bcee014f8872ea91e6c40 /source/blender/imbuf/intern/tiff.c
parent10b983002f953f88ca84bc418d339a8096e3cef4 (diff)
Fix part of #32377: TIFF not saving on windows to paths with special characters,
and DDS should not be in the list of file types because we can only load those currently.
Diffstat (limited to 'source/blender/imbuf/intern/tiff.c')
-rw-r--r--source/blender/imbuf/intern/tiff.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c
index 985c575daaa..ac5f5da8a67 100644
--- a/source/blender/imbuf/intern/tiff.c
+++ b/source/blender/imbuf/intern/tiff.c
@@ -59,7 +59,9 @@
#include "tiffio.h"
-
+#ifdef WIN32
+#include "utfconv.h"
+#endif
/***********************
* Local declarations. *
@@ -712,7 +714,13 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags)
}
else {
/* create image as a file */
+#ifdef WIN32
+ wchar_t *wname = alloc_utf16_from_8(name, 0);
+ image = TIFFOpenW(wname, "w");
+ free(wname);
+#else
image = TIFFOpen(name, "w");
+#endif
}
if (image == NULL) {
fprintf(stderr,