WM: initialize WM and deps before handling events
authorCampbell Barton <ideasman42@gmail.com>
Fri, 25 Aug 2017 10:26:52 +0000 (20:26 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 25 Aug 2017 10:26:52 +0000 (20:26 +1000)
commit16377abda8adb6444e888d1144d9225fa6415e65
tree27a46c7ee5765aefa2f60346a3074e6608ffc6e0
parent2d5935a9c095fc8abae844571e72923027c40725
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/intern/wm.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/wm_event_system.h