diff options
Diffstat (limited to 'source/blender/blenkernel/intern/blendfile.c')
-rw-r--r-- | source/blender/blenkernel/intern/blendfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |