diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-04 12:56:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-04 12:56:17 +0300 |
commit | 06d33a6876d2c0c90ff2885192051dee9d68962d (patch) | |
tree | 047796649dabc909f4db6e0dc238f1b1d8dadef9 /source/blender/windowmanager/intern | |
parent | 9fffb78343ba00c33c6b5165d6c8c5c77b97a99c (diff) |
Fix Saving startup file changing paths of the current file
Saving the startup file now uses "Save Copy", so paths are preserved.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); |