diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-14 16:37:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-14 16:39:58 +0300 |
commit | 3056add0e0b087f7e08781095fcdd99d08ca8f25 (patch) | |
tree | 7c963e81d329b4f66706d7c2228217b63edbb085 /source/blender/windowmanager | |
parent | 34843a855e6b45cffbc0cd0ffae2d688e6ee1168 (diff) |
Fix T45699: BGE auto-run exits immediately
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 8b7780bebdb..a03f2c22055 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -1020,6 +1020,10 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr C_void_ptr wm_event_do_handlers(C); wm_event_do_notifiers(C); wm_draw_update(C); + + /* Warning! code above nulls 'C->wm.window', causing BGE to quit, see: T45699. + * Further, its easier to match behavior across platforms, so restore the window. */ + CTX_wm_window_set(C, win); #endif } } |