From ea6a5bb8fb886624f61bffece3df92e9491d12ce Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Sat, 1 Dec 2018 11:25:43 -0200 Subject: [PATCH] Fix crash when multiple mouse buttons is pressed. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 9ceac0d7b0c..fd584e82add 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1780,7 +1780,7 @@ void Viewport::_gui_input_event(Ref p_event) { } } - if (gui.mouse_focus->can_process()) { + if (gui.mouse_focus && gui.mouse_focus->can_process()) { _gui_call_input(gui.mouse_focus, mb); }