You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
[3.x] Fix crashes when using _input functions
This commit is contained in:
@@ -70,6 +70,7 @@ void SceneTreeDock::_input(Ref<InputEvent> p_event) {
|
||||
}
|
||||
|
||||
void SceneTreeDock::_unhandled_key_input(Ref<InputEvent> p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
if (get_viewport()->get_modal_stack_top())
|
||||
return; //ignore because of modal window
|
||||
|
||||
Reference in New Issue
Block a user