fix for previous commit, reload startup was freezing

This commit is contained in:
Matt Ebb 2009-05-30 04:24:10 +00:00
parent b36eb7e452
commit 1422cb6e45

@ -302,6 +302,9 @@ int WM_read_homefile(bContext *C, wmOperator *op)
/* prevent loading no UI */
G.fileflags &= ~G_FILE_NO_UI;
if (from_memory)
wm_clear_default_size(C);
/* put aside screens to match with persistant windows later */
wm_window_match_init(C, &wmbase);
@ -309,7 +312,6 @@ int WM_read_homefile(bContext *C, wmOperator *op)
success = BKE_read_file(C, tstr, NULL, NULL);
} else {
success = BKE_read_file_from_memory(C, datatoc_B_blend, datatoc_B_blend_size, NULL, NULL);
wm_clear_default_size(C);
}
/* match the read WM with current WM */