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 committed 2026-03-02 12:40:20 +01:00
commit db89e9b3cf
1 file changed
+3
+3
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();