diff options
author | Campbell Barton <campbell@blender.org> | 2022-10-05 07:30:46 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-10-05 07:34:02 +0300 |
commit | b9cbb229b1848bf71dae41c0b873def75ce3e32b (patch) | |
tree | 839865163070b7e6cec7fb2c60e1fab6fda5d18f /source/blender/blenkernel | |
parent | 79774aa68ce3f33547b0daf928874a13218d2aee (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.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/blendfile.c | 2 |
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); |