Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-03-04 12:56:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-04 12:56:17 +0300
commit06d33a6876d2c0c90ff2885192051dee9d68962d (patch)
tree047796649dabc909f4db6e0dc238f1b1d8dadef9
parent9fffb78343ba00c33c6b5165d6c8c5c77b97a99c (diff)
Fix Saving startup file changing paths of the current file
Saving the startup file now uses "Save Copy", so paths are preserved.
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
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");