[Bf-blender-cvs] [06d33a6876d] master: Fix Saving startup file changing paths of the current file
Campbell Barton
noreply at git.blender.org
Thu Mar 4 11:01:59 CET 2021
Commit: 06d33a6876d2c0c90ff2885192051dee9d68962d
Author: Campbell Barton
Date: Thu Mar 4 20:56:17 2021 +1100
Branches: master
https://developer.blender.org/rB06d33a6876d2c0c90ff2885192051dee9d68962d
Fix Saving startup file changing paths of the current file
Saving the startup file now uses "Save Copy", so paths are preserved.
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 0b39bf5e729..d7b33d20c0f 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1780,6 +1780,8 @@ static int wm_homefile_write_exec(bContext *C, wmOperator *op)
* On load the `G.relbase_valid` will be false so the paths
* wont have a base for resolving the relative paths. */
.remap_mode = BLO_WRITE_PATH_REMAP_ABSOLUTE,
+ /* Don't apply any path changes to the current blend file. */
+ .use_save_as_copy = true,
},
op->reports) == 0) {
printf("fail\n");
More information about the Bf-blender-cvs
mailing list