[Bf-blender-cvs] [66d4006] master: Attempt to fix broken path remapping in own rB443b3ca9b9cb.

Bastien Montagne noreply at git.blender.org
Wed Sep 14 12:59:21 CEST 2016


Commit: 66d4006f51b56feff7db9846d40e78b18c519e67
Author: Bastien Montagne
Date:   Wed Sep 14 12:58:01 2016 +0200
Branches: master
https://developer.blender.org/rB66d4006f51b56feff7db9846d40e78b18c519e67

Attempt to fix broken path remapping in own rB443b3ca9b9cb.

===================================================================

M	source/blender/blenkernel/intern/blendfile.c

===================================================================

diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index 94f762f..6da6847 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);




More information about the Bf-blender-cvs mailing list