From 420df0c2a8861141c180fb852f67a37c75ff91a7 Mon Sep 17 00:00:00 2001 From: Marcus Brummer Date: Wed, 18 Nov 2020 00:12:32 +0100 Subject: [PATCH] Fixed deletion of nodes with exported node paths (cherry picked from commit 3629651ef85b258d942ed90504fe1092b0e24a4f) --- editor/scene_tree_dock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 7ec65e37f5e4..7481b639c520 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1360,8 +1360,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);