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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-09-22 05:23:24 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-09-23 17:02:25 +0300
commitf6b01947469d9ac88e8e0b0646a30f263df2f00d (patch)
tree40a04df9ce826c6fba7011d58999446142fa4cfd /source
parenta41bdb77d3efacdff7ad6da3ce2e9ac6e62773a1 (diff)
Fix T46201: Popup menu in post_load handler crash
Match regular file loading logic for new-file operator.
Diffstat (limited to 'source')
-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);