Merge pull request #116863 from jelolul/fix-node-removal-crash

Fix crash when deleting a sibling node of AnimationPlayer
This commit is contained in:
Rémi Verschelde 2026-03-02 12:40:20 +01:00
commit db89e9b3cf
No known key found for this signature in database
GPG key ID: C3336907360768E1

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();