diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index a569db7a1b3..ec225c3c380 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1348,8 +1348,8 @@ void SceneTreeDock::perform_node_renames(Node *p_base, Listget().first) { + // update the node itself if it has a valid node path and has not been deleted + if (root_path == F->get().first && p != NodePath() && F->get().second != NodePath()) { NodePath abs_path = NodePath(String(root_path).plus_file(p)).simplified(); NodePath rel_path_new = F->get().second.rel_path_to(abs_path);