diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-13 08:51:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-13 08:51:49 +0300 |
commit | 3d923f3eaf998ebd73f6c93eb87a05288b579e22 (patch) | |
tree | 0f1a8937c839589936cab14ade2336fe8c1f3131 /source | |
parent | 49550d9dd7bf368c811941928231fb873b6a99e9 (diff) |
Preferences: tag as dirty for add-ons & loading factory startup
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 4 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 54bcc41c504..8e33100714e 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -452,6 +452,7 @@ static bAddon *rna_userdef_addon_new(void) ListBase *addons_list = &U.addons; bAddon *addon = BKE_addon_new(); BLI_addtail(addons_list, addon); + U.runtime.is_dirty = true; return addon; } @@ -466,12 +467,14 @@ static void rna_userdef_addon_remove(ReportList *reports, PointerRNA *addon_ptr) BLI_remlink(addons_list, addon); BKE_addon_free(addon); RNA_POINTER_INVALIDATE(addon_ptr); + U.runtime.is_dirty = true; } static bPathCompare *rna_userdef_pathcompare_new(void) { bPathCompare *path_cmp = MEM_callocN(sizeof(bPathCompare), "bPathCompare"); BLI_addtail(&U.autoexec_paths, path_cmp); + U.runtime.is_dirty = true; return path_cmp; } @@ -485,6 +488,7 @@ static void rna_userdef_pathcompare_remove(ReportList *reports, PointerRNA *path BLI_freelinkN(&U.autoexec_paths, path_cmp); RNA_POINTER_INVALIDATE(path_cmp_ptr); + U.runtime.is_dirty = true; } static void rna_userdef_temp_update(Main *UNUSED(bmain), diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 0dc144ff0d7..b5ff7435d5f 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -1795,6 +1795,10 @@ static int wm_userpref_read_exec(bContext *C, wmOperator *op) wm_userpref_update_when_changed(C, bmain, &U_backup, &U); + if (use_factory_settings) { + U.runtime.is_dirty = true; + } + WM_event_add_notifier(C, NC_WINDOW, NULL); return OPERATOR_FINISHED; |