You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Fixed deletion of nodes with exported node paths
(cherry picked from commit 3629651ef8)
This commit is contained in:
committed by
Rémi Verschelde
parent
b30d2e5d39
commit
420df0c2a8
@@ -1360,8 +1360,8 @@ void SceneTreeDock::perform_node_renames(Node *p_base, List<Pair<NodePath, NodeP
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update if the node itself moved up/down the tree hirarchy
|
// update the node itself if it has a valid node path and has not been deleted
|
||||||
if (root_path == F->get().first) {
|
if (root_path == F->get().first && p != NodePath() && F->get().second != NodePath()) {
|
||||||
NodePath abs_path = NodePath(String(root_path).plus_file(p)).simplified();
|
NodePath abs_path = NodePath(String(root_path).plus_file(p)).simplified();
|
||||||
NodePath rel_path_new = F->get().second.rel_path_to(abs_path);
|
NodePath rel_path_new = F->get().second.rel_path_to(abs_path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user