mirror of https://github.com/godotengine/godot
Re-add `mouse_focus`-nullcheck
This commit is contained in:
parent
cb73a6e9f9
commit
60c261ba2d
|
|
@ -1771,8 +1771,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
|
|||
}
|
||||
}
|
||||
|
||||
bool stopped = gui.mouse_focus->can_process() && _gui_call_input(gui.mouse_focus, mb);
|
||||
|
||||
bool stopped = gui.mouse_focus && gui.mouse_focus->can_process() && _gui_call_input(gui.mouse_focus, mb);
|
||||
if (stopped) {
|
||||
set_input_as_handled();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue