Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-09-22 05:23:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-09-22 05:26:24 +0300
commit12ea90b707d2ccac5960874eac83af057911320c (patch)
tree20f0939a2b204e5dba7d9fae28ed9ad0709fc153 /source/blender/windowmanager
parent32578db1bd099d2a45acbdf22cbf915df3fe80f7 (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.c2
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);