Skip to content

Commit

Permalink
Merge pull request #86891 from Mickeon/autocompletion-get-node-or-null
Browse files Browse the repository at this point in the history
Add autocompletion to `get_node_or_null`
  • Loading branch information
akien-mga committed Jan 8, 2024
2 parents c951ec1 + f996003 commit c9ef2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/main/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3065,7 +3065,7 @@ static void _add_nodes_to_options(const Node *p_base, const Node *p_node, List<S

void Node::get_argument_options(const StringName &p_function, int p_idx, List<String> *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<StringName, String> global_groups = ProjectSettings::get_singleton()->get_global_groups_list();
Expand Down

0 comments on commit c9ef2fd

Please sign in to comment.