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:
Diffstat (limited to 'source/blender/io')
-rw-r--r--source/blender/io/collada/DocumentExporter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/io/collada/DocumentExporter.cpp b/source/blender/io/collada/DocumentExporter.cpp
index 24a960ab287..9d61b9b56ab 100644
--- a/source/blender/io/collada/DocumentExporter.cpp
+++ b/source/blender/io/collada/DocumentExporter.cpp
@@ -157,13 +157,12 @@ DocumentExporter::DocumentExporter(BlenderContext &blender_context, ExportSettin
static COLLADABU::NativeString make_temp_filepath(const char *name, const char *extension)
{
char tempfile[FILE_MAX];
- const char *tempdir = BKE_tempdir_session();
if (name == NULL) {
name = "untitled";
}
- BLI_make_file_string(NULL, tempfile, tempdir, name);
+ BLI_join_dirfile(tempfile, sizeof(tempfile), BKE_tempdir_session(), name);
if (extension) {
BLI_path_extension_ensure(tempfile, FILE_MAX, extension);