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-24 09:54:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-24 09:54:06 +0300
commitcd0249547926ee975fc3ba7046f59bf9ca004547 (patch)
treee10bf111315dae2ae563ea24e9dbb6cd7bda67f1
parent3d3a91103b4fb2abe8f785421dabc71cee8bd900 (diff)
Fix T75036: Assert when copying pose bones
-rw-r--r--source/blender/editors/armature/pose_transform.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/armature/pose_transform.c b/source/blender/editors/armature/pose_transform.c
index 0360f385201..fe79894a351 100644
--- a/source/blender/editors/armature/pose_transform.c
+++ b/source/blender/editors/armature/pose_transform.c
@@ -710,6 +710,8 @@ static int pose_copy_exec(bContext *C, wmOperator *op)
* any datablock expansion?
*/
Main *temp_bmain = BKE_main_new();
+ STRNCPY(temp_bmain->name, BKE_main_blendfile_path_from_global());
+
Object ob_copy = *ob;
ob_copy.adt = NULL;
bArmature arm_copy = *((bArmature *)ob->data);
@@ -773,6 +775,8 @@ static int pose_paste_exec(bContext *C, wmOperator *op)
/* Read copy buffer .blend file. */
char str[FILE_MAX];
Main *tmp_bmain = BKE_main_new();
+ STRNCPY(tmp_bmain->name, BKE_main_blendfile_path_from_global());
+
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");