|
@@ -3025,9 +3025,9 @@ Array Node::_get_node_and_resource(const NodePath &p_path) {
|
|
|
|
|
|
Node *Node::get_node_and_resource(const NodePath &p_path, Ref<Resource> &r_res, Vector<StringName> &r_leftover_subpath, bool p_last_is_property) const {
|
|
|
ERR_THREAD_GUARD_V(nullptr);
|
|
|
- Node *node = get_node(p_path);
|
|
|
r_res = Ref<Resource>();
|
|
|
r_leftover_subpath = Vector<StringName>();
|
|
|
+ Node *node = get_node_or_null(p_path);
|
|
|
if (!node) {
|
|
|
return nullptr;
|
|
|
}
|