From dd54b721c6ff3e0614f771e76fb1ccfbb78f6d67 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Apr 2014 11:29:45 +1100 Subject: Add load_ui to WM_OT_read_homefile Useful for implementing templates. Patch D423 by Gaia Clary --- source/blender/windowmanager/intern/wm_init_exit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/windowmanager/intern/wm_init_exit.c') 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); -- cgit v1.2.3