diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-07 05:23:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-07 05:26:23 +0300 |
commit | 0964865568802aba62737d899d6721ef5c58b63a (patch) | |
tree | 7e85df6a34a192085f94d181ba53d268bc6c1632 /source/blender/io/collada/DocumentExporter.cpp | |
parent | 8fb1ea857ffef370acb020f6573c165100923e1b (diff) |
Cleanup: replace BLI_make_file_string with BLI_join_dirfile where possible
Use 'BLI_join_dirfile' for joining paths that don't need to expand '//'.
Diffstat (limited to 'source/blender/io/collada/DocumentExporter.cpp')
-rw-r--r-- | source/blender/io/collada/DocumentExporter.cpp | 3 |
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); |