diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-05 05:26:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-05 05:32:53 +0300 |
commit | 50b0503a110b8159fe7a30645d7a2ebbf518860f (patch) | |
tree | e19134963a9494eaab5dfd7c52d6876235170b2f /source/blender/windowmanager/intern | |
parent | e7e3431b299448310f9c9e95d863055e3e04a8c4 (diff) |
Revert "Fix T92464: Operators fail after opening blend files via an operator"
This reverts commit 9bd97e62ade417f6b4025acbad46802c3e7e5683.
This caused T92818.
Event handling relies on checking for NULL window to detect file load in
enough different areas of the code that this isn't a practical solution.
Revert this change in favor of an alternative approach.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index ff9b56d7859..67222cc07f9 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -769,18 +769,6 @@ static void wm_file_read_post(bContext *C, const struct wmFileReadPost_Params *p WM_toolsystem_init(C); } } - - /* Keep last. */ - if (use_data) { - if (!G.background) { - /* Special case, when calling indirectly (from a Python script for example), - * the event loop wont run again to set the active window. - * Set the window here to allow scripts to continue running other operations, see: T92464. */ - if (wm->op_undo_depth > 0) { - CTX_wm_window_set(C, wm->windows.first); - } - } - } } /** \} */ |