From 2d96666a71e2fbd04b3608a6344f0dbc656cc95c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 12 Nov 2015 21:52:25 +1100 Subject: [PATCH] Fix for factory settings loading without UI When load-ui was disabled, resetting factory settings kept existing UI too. --- source/blender/windowmanager/intern/wm_files.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index e87be231025..86da2ef32ba 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -768,6 +768,10 @@ int wm_homefile_read_exec(bContext *C, wmOperator *op) } } } + else { + /* always load UI for factory settings (prefs will re-init) */ + G.fileflags &= ~G_FILE_NO_UI; + } return wm_homefile_read(C, op->reports, from_memory, filepath) ? OPERATOR_FINISHED : OPERATOR_CANCELLED; }