From f996003fb4de23d8751d84438d978957d5804233 Mon Sep 17 00:00:00 2001 From: Micky Date: Sat, 6 Jan 2024 17:33:32 +0100 Subject: [PATCH] Add autocompletion to `get_node_or_null` --- scene/main/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index dac0b64853c..1dd3b8bd1bb 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -3065,7 +3065,7 @@ static void _add_nodes_to_options(const Node *p_base, const Node *p_node, List *r_options) const { String pf = p_function; - if (p_idx == 0 && (pf == "has_node" || pf == "get_node")) { + if (p_idx == 0 && (pf == "has_node" || pf == "get_node" || pf == "get_node_or_null")) { _add_nodes_to_options(this, this, r_options); } else if (p_idx == 0 && (pf == "add_to_group" || pf == "remove_from_group" || pf == "is_in_group")) { HashMap global_groups = ProjectSettings::get_singleton()->get_global_groups_list();