From 12ea90b707d2ccac5960874eac83af057911320c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Sep 2015 12:23:24 +1000 Subject: Fix T46201: Popup menu in post_load handler crash Match regular file loading logic for new-file operator. --- source/blender/windowmanager/intern/wm_files.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 6927e2dbc14..41827ad0925 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -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); -- cgit v1.2.3