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 <campbell@blender.org>2022-10-05 07:30:46 +0300
committerCampbell Barton <campbell@blender.org>2022-10-05 07:34:02 +0300
commitb9cbb229b1848bf71dae41c0b873def75ce3e32b (patch)
tree839865163070b7e6cec7fb2c60e1fab6fda5d18f
parent79774aa68ce3f33547b0daf928874a13218d2aee (diff)
Fix app-template settings being used for non-template preferences
Saving non app-template preferences would use add-ons and other app-template settings to write the default preferences if there was no existing user preferences file saved.
-rw-r--r--source/blender/blenkernel/intern/blendfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index 4601fc1fc3a..ba208f688ee 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -720,7 +720,7 @@ bool BKE_blendfile_userdef_write_app_template(const char *filepath, ReportList *
UserDef *userdef_default = BLI_exists(filepath) ? BKE_blendfile_userdef_read(filepath, NULL) :
NULL;
if (userdef_default == NULL) {
- return BKE_blendfile_userdef_write(filepath, reports);
+ userdef_default = BKE_blendfile_userdef_from_defaults();
}
BKE_blender_userdef_app_template_data_swap(&U, userdef_default);