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:
authorCampbell Barton <ideasman42@gmail.com>2020-03-07 05:23:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-07 05:26:23 +0300
commit0964865568802aba62737d899d6721ef5c58b63a (patch)
tree7e85df6a34a192085f94d181ba53d268bc6c1632 /source/blender/editors/armature/pose_transform.c
parent8fb1ea857ffef370acb020f6573c165100923e1b (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/editors/armature/pose_transform.c')
-rw-r--r--source/blender/editors/armature/pose_transform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/pose_transform.c b/source/blender/editors/armature/pose_transform.c
index d366978ba2b..0360f385201 100644
--- a/source/blender/editors/armature/pose_transform.c
+++ b/source/blender/editors/armature/pose_transform.c
@@ -723,7 +723,7 @@ static int pose_copy_exec(bContext *C, wmOperator *op)
* existing on it's own.
*/
BKE_copybuffer_tag_ID(&ob_copy.id);
- BLI_make_file_string("/", str, BKE_tempdir_base(), "copybuffer_pose.blend");
+ BLI_join_dirfile(str, sizeof(str), BKE_tempdir_base(), "copybuffer_pose.blend");
BKE_copybuffer_save(temp_bmain, str, op->reports);
/* We clear the lists so no datablocks gets freed,
* This is required because objects in temp bmain shares same pointers
@@ -773,7 +773,7 @@ static int pose_paste_exec(bContext *C, wmOperator *op)
/* Read copy buffer .blend file. */
char str[FILE_MAX];
Main *tmp_bmain = BKE_main_new();
- BLI_make_file_string("/", str, BKE_tempdir_base(), "copybuffer_pose.blend");
+ BLI_join_dirfile(str, sizeof(str), BKE_tempdir_base(), "copybuffer_pose.blend");
if (!BKE_copybuffer_read(tmp_bmain, str, op->reports, FILTER_ID_OB)) {
BKE_report(op->reports, RPT_ERROR, "Copy buffer is empty");
BKE_main_free(tmp_bmain);