forked from bartvdbraak/blender
Fix T45699: BGE auto-run exits immediately
This commit is contained in:
parent
34843a855e
commit
3056add0e0
@ -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_handlers(C);
|
||||||
wm_event_do_notifiers(C);
|
wm_event_do_notifiers(C);
|
||||||
wm_draw_update(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
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user