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>2019-08-11 11:03:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-11 11:03:17 +0300
commite2c6cfec184336e6820e805c232a19ffb5f8bfd9 (patch)
tree5df6770f21c3c8dedb9056f26ebe9bd987d5162b /source/blender/windowmanager
parent18ba66d75ee669bbb433c46ffc0d2516ff423b43 (diff)
Preferences: tag as dirty when loading factory startup
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 6a5800f4288..528d8dc3ca3 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1959,6 +1959,10 @@ static int wm_homefile_read_exec(bContext *C, wmOperator *op)
if (use_userdef) {
wm_userpref_read_exceptions(&U, &U_backup);
SET_FLAG_FROM_TEST(G.f, use_factory_settings, G_FLAG_USERPREF_NO_SAVE_ON_EXIT);
+
+ if (use_factory_settings) {
+ U.runtime.is_dirty = true;
+ }
}
return OPERATOR_FINISHED;