diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-22 05:23:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-22 05:26:24 +0300 |
commit | 12ea90b707d2ccac5960874eac83af057911320c (patch) | |
tree | 20f0939a2b204e5dba7d9fae28ed9ad0709fc153 /source/blender/windowmanager | |
parent | 32578db1bd099d2a45acbdf22cbf915df3fe80f7 (diff) |
Fix T46201: Popup menu in post_load handler crash
Match regular file loading logic for new-file operator.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |