Merge pull request #63783 from timothyqiu/atp-bounds

This commit is contained in:
Rémi Verschelde 2022-08-01 22:06:11 +02:00 committed by GitHub
commit 17e8fa8632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1399,6 +1399,7 @@ bool AnimationTreePlayer::are_nodes_connected(const StringName &p_src_node, cons
ERR_FAIL_COND_V(p_src_node == p_dst_node, false);
NodeBase *dst = node_map[p_dst_node];
ERR_FAIL_INDEX_V(p_dst_input, dst->inputs.size(), false);
return dst->inputs[p_dst_input].node == p_src_node;
}