From 16377abda8adb6444e888d1144d9225fa6415e65 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 Aug 2017 20:26:52 +1000 Subject: WM: initialize WM and deps before handling events This avoids obscure bugs where operators could run from events that happen before the UI and depsgraph have been initialized. See: D2809 for details. --- source/blender/windowmanager/wm_event_system.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/windowmanager/wm_event_system.h') diff --git a/source/blender/windowmanager/wm_event_system.h b/source/blender/windowmanager/wm_event_system.h index efc01b1f8a8..3fb9cd617bf 100644 --- a/source/blender/windowmanager/wm_event_system.h +++ b/source/blender/windowmanager/wm_event_system.h @@ -87,7 +87,8 @@ void wm_event_do_handlers (bContext *C); void wm_event_add_ghostevent (wmWindowManager *wm, wmWindow *win, int type, int time, void *customdata); -void wm_event_do_notifiers (bContext *C); +void wm_event_do_refresh_wm_and_depsgraph(bContext *C); +void wm_event_do_notifiers(bContext *C); /* wm_keymap.c */ -- cgit v1.2.3