diff options
author | Julian Eisel <julian@blender.org> | 2020-03-10 13:21:00 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-10 13:21:00 +0300 |
commit | dc3ff1db3f6a38a6928cf86304f992656775cdef (patch) | |
tree | 449812ad450bb0ba9982429b9bbf5f6c361cb2f4 /source/blender/editors | |
parent | 9f48852ba405369772eb89a2d25dc7b06d6aa836 (diff) |
Fix T74585: Crash when scrolling viewport shading pop-up
Was dereferencing NULL pointer. Mistake from d5572eacc595.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 088a904ec78..6da9bacd865 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -9616,7 +9616,7 @@ static int ui_handle_menu_event(bContext *C, but->active->cancel = true; button_activate_exit(C, but, but->active, false, false); } - WM_event_add_mousemove(but->active->window); + WM_event_add_mousemove(CTX_wm_window(C)); } } break; |