mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
[3.x] Fix crashes when using _input functions
This commit is contained in:
parent
2d57df60f7
commit
06976c3e84
15 changed files with 18 additions and 1 deletions
|
@ -2641,6 +2641,8 @@ void ScriptEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data, Co
|
|||
}
|
||||
|
||||
void ScriptEditor::_unhandled_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
if (!is_visible_in_tree() || !p_event->is_pressed() || p_event->is_echo())
|
||||
return;
|
||||
if (ED_IS_SHORTCUT("script_editor/next_script", p_event)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue