From 66d4006f51b56feff7db9846d40e78b18c519e67 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 14 Sep 2016 12:58:01 +0200 Subject: Attempt to fix broken path remapping in own rB443b3ca9b9cb. --- source/blender/blenkernel/intern/blendfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/blendfile.c') diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c index 94f762f6617..6da68470ecc 100644 --- a/source/blender/blenkernel/intern/blendfile.c +++ b/source/blender/blenkernel/intern/blendfile.c @@ -510,7 +510,7 @@ bool BKE_blendfile_write_partial( /* This is needed to be able to load that file as a real one later * (otherwise main->name will not be set at read time). */ - BLI_strncpy(bmain_dst->name, filepath, sizeof(bmain_dst->name)); + BLI_strncpy(bmain_dst->name, bmain_src->name, sizeof(bmain_dst->name)); if (write_flags & G_FILE_RELATIVE_REMAP) { path_list_backup = BKE_bpath_list_backup(bmain_src, path_list_flag); -- cgit v1.2.3