Fix T46201: Popup menu in post_load handler crash
Match regular file loading logic for new-file operator.
This commit is contained in:
parent
a41bdb77d3
commit
f6b0194746
|
@ -679,6 +679,8 @@ int wm_homefile_read(bContext *C, ReportList *reports, bool from_memory, const c
|
|||
BKE_undo_reset();
|
||||
BKE_undo_write(C, "original"); /* save current state */
|
||||
|
||||
CTX_wm_window_set(C, CTX_wm_manager(C)->windows.first);
|
||||
|
||||
ED_editors_init(C);
|
||||
DAG_on_visible_update(CTX_data_main(C), true);
|
||||
|
||||
|
|
Loading…
Reference in New Issue