Fix crash when deleting a sibling node of AnimationPlayer

This commit is contained in:
jelo 2026-02-27 22:02:33 +00:00
parent 634220e9fc
commit 83a0fc2b31
No known key found for this signature in database
GPG key ID: C21D35248785CD20

View file

@ -2330,6 +2330,9 @@ void SceneTreeDock::perform_node_renames(Node *p_base, HashMap<Node *, NodePath>
for (const KeyValue<Node *, NodePath> &rename : *p_renames) {
NodePath old_path = rename.key->get_path();
NodePath new_path = rename.value;
if (new_path.is_empty()) {
continue;
}
Vector<StringName> rel_path = old_path.rel_path_to(new_path).get_names();
StringName old_node_name = rename.key->get_name();