diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-04 12:52:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-04 12:52:03 +0300 |
commit | 9fffb78343ba00c33c6b5165d6c8c5c77b97a99c (patch) | |
tree | 7529949cf1ee9bb4d97c358dce00a03446cdbd9d /source/blender/windowmanager | |
parent | ef7efc375197e560da3c91153b21694f5bcb4a27 (diff) |
Fix T86231: Saving startup file always remaps relative
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 5 |
1 files changed, 4 insertions, 1 deletions
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"); |