From f4897447556a280a8b8f85a99892e83bbf6d6163 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 23 Aug 2023 16:32:02 +0200 Subject: [PATCH] Fix: Pressing keys after editor starts result in errors printed. "scene/main/node.cpp:1748 - Parameter "p_node" is null." --- editor/limbo_ai_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/limbo_ai_editor_plugin.cpp b/editor/limbo_ai_editor_plugin.cpp index 5b27ec0..39f9275 100644 --- a/editor/limbo_ai_editor_plugin.cpp +++ b/editor/limbo_ai_editor_plugin.cpp @@ -983,7 +983,7 @@ void LimboAIEditor::shortcut_input(const Ref &p_event) { // * Local shortcuts. - if (!(has_focus() || is_ancestor_of(get_viewport()->gui_get_focus_owner()))) { + if (!(has_focus() || get_viewport()->gui_get_focus_owner() == nullptr || is_ancestor_of(get_viewport()->gui_get_focus_owner()))) { return; }