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>2014-04-03 04:29:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-03 04:29:45 +0400
commitdd54b721c6ff3e0614f771e76fb1ccfbb78f6d67 (patch)
tree3c73cd720546625460c90bd5d9b6290c169c07c8 /source/blender/windowmanager/intern/wm_init_exit.c
parent726628518d9c7d30cf5b367992395d74c5cc65af (diff)
Add load_ui to WM_OT_read_homefile
Useful for implementing templates. Patch D423 by Gaia Clary
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 5325ade011f..d4a23dcc8b6 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -161,6 +161,9 @@ void WM_init(bContext *C, int argc, const char **argv)
BLF_init(11, U.dpi); /* Please update source/gamengine/GamePlayer/GPG_ghost.cpp if you change this */
BLF_lang_init();
+ /* Enforce loading the UI for the initial homefile */
+ G.fileflags &= ~G_FILE_NO_UI;
+
/* get the default database, plus a wm */
wm_homefile_read(C, NULL, G.factory_startup, NULL);