From 06d33a6876d2c0c90ff2885192051dee9d68962d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 4 Mar 2021 20:56:17 +1100 Subject: Fix Saving startup file changing paths of the current file Saving the startup file now uses "Save Copy", so paths are preserved. --- source/blender/windowmanager/intern/wm_files.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- cgit v1.2.3