Fix for error reporting w/ a new-file

Reports are now initialized before reading startup.blend
This commit is contained in:
Campbell Barton 2015-09-22 15:56:03 +10:00
parent 9a62164d94
commit 70f0499139
1 changed files with 4 additions and 2 deletions

View File

@ -174,6 +174,10 @@ void WM_init(bContext *C, int argc, const char **argv)
/* Enforce loading the UI for the initial homefile */
G.fileflags &= ~G_FILE_NO_UI;
/* reports cant be initialized before the wm,
* but keep before file reading, since that may report errors */
wm_init_reports(C);
/* get the default database, plus a wm */
wm_homefile_read(C, NULL, G.factory_startup, NULL);
@ -229,8 +233,6 @@ void WM_init(bContext *C, int argc, const char **argv)
if (!G.background && !wm_start_with_console)
GHOST_toggleConsole(3);
wm_init_reports(C); /* reports cant be initialized before the wm */
clear_matcopybuf();
ED_render_clear_mtex_copybuf();