Skip to content

Commit

Permalink
Fixed deletion of nodes with exported node paths
Browse files Browse the repository at this point in the history
(cherry picked from commit 3629651)
  • Loading branch information
mbrlabs authored and akien-mga committed Nov 18, 2020
1 parent b30d2e5 commit 420df0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1360,8 +1360,8 @@ void SceneTreeDock::perform_node_renames(Node *p_base, List<Pair<NodePath, NodeP
break;
}

// update if the node itself moved up/down the tree hirarchy
if (root_path == F->get().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);

Expand Down

0 comments on commit 420df0c

Please sign in to comment.