Fix 40841: Copy and Paste objects no longer functions from one running instance of Blender to another.
Own mistake in recent temp data handling refactor, copy/paste temp .blend file needs to be in non-session-specific temp dir...
This commit is contained in:
parent
a8233d7c44
commit
4c83fae16d
Notes:
blender-bot
2023-02-14 10:25:54 +01:00
Referenced by issue #40841, Copy and Paste objects no longer functions from one running instance of Blender to another running instance for OSX.
|
@ -77,7 +77,7 @@ static int view3d_copybuffer_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
CTX_DATA_END;
|
||||
|
||||
BLI_make_file_string("/", str, BLI_temp_dir_session(), "copybuffer.blend");
|
||||
BLI_make_file_string("/", str, BLI_temp_dir_base(), "copybuffer.blend");
|
||||
BKE_copybuffer_save(str, op->reports);
|
||||
|
||||
BKE_report(op->reports, RPT_INFO, "Copied selected objects to buffer");
|
||||
|
@ -102,7 +102,7 @@ static int view3d_pastebuffer_exec(bContext *C, wmOperator *op)
|
|||
{
|
||||
char str[FILE_MAX];
|
||||
|
||||
BLI_make_file_string("/", str, BLI_temp_dir_session(), "copybuffer.blend");
|
||||
BLI_make_file_string("/", str, BLI_temp_dir_base(), "copybuffer.blend");
|
||||
if (BKE_copybuffer_paste(C, str, op->reports)) {
|
||||
WM_event_add_notifier(C, NC_WINDOW, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue