Merge pull request #116863 from jelolul/fix-node-removal-crash
Fix crash when deleting a sibling node of AnimationPlayer
This commit is contained in:
commit
db89e9b3cf
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue