[Bf-blender-cvs] [9fffb78343b] master: Fix T86231: Saving startup file always remaps relative
Campbell Barton
noreply at git.blender.org
Thu Mar 4 10:53:12 CET 2021
Commit: 9fffb78343ba00c33c6b5165d6c8c5c77b97a99c
Author: Campbell Barton
Date: Thu Mar 4 20:52:03 2021 +1100
Branches: master
https://developer.blender.org/rB9fffb78343ba00c33c6b5165d6c8c5c77b97a99c
Fix T86231: Saving startup file always remaps relative
===================================================================
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 d2d080a9a68..0b39bf5e729 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1776,7 +1776,10 @@ static int wm_homefile_write_exec(bContext *C, wmOperator *op)
filepath,
fileflags,
&(const struct BlendFileWriteParams){
- .remap_mode = BLO_WRITE_PATH_REMAP_RELATIVE,
+ /* Make all paths absolute when saving the startup file.
+ * 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,
},
op->reports) == 0) {
printf("fail\n");
More information about the Bf-blender-cvs
mailing list