mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Fix crash when executing AnimationTreePlayer.are_nodes_connected
(cherry picked from commit 9d923764c9
)
This commit is contained in:
parent
73e8a773b3
commit
b56d1abc47
1 changed files with 1 additions and 0 deletions
|
@ -1398,6 +1398,7 @@ bool AnimationTreePlayer::are_nodes_connected(const StringName &p_src_node, cons
|
||||||
ERR_FAIL_COND_V(p_src_node == p_dst_node, false);
|
ERR_FAIL_COND_V(p_src_node == p_dst_node, false);
|
||||||
|
|
||||||
NodeBase *dst = node_map[p_dst_node];
|
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;
|
return dst->inputs[p_dst_input].node == p_src_node;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue