Merge pull request #24104 from guilhermefelipecgs/fix_mouse_crash

Fix crash when multiple mouse buttons is pressed.
This commit is contained in:
Rémi Verschelde 2018-12-02 17:13:54 +01:00 committed by GitHub
commit 7215f7475e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1780,7 +1780,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
}
}
if (gui.mouse_focus->can_process()) {
if (gui.mouse_focus && gui.mouse_focus->can_process()) {
_gui_call_input(gui.mouse_focus, mb);
}