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");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to