From eecd2b11df5366d68ad0efefb311b76d7d24f659 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 16 Sep 2022 12:27:55 +0200 Subject: [PATCH] Fix build. --- editor/scene_tree_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 87ef747a3..1a4069690 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1196,7 +1196,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { continue; } StringName name = node->get_name(); - if (new_unique_names.find(name) != -1 || get_tree()->get_edited_scene_root()->get_node_or_null(UNIQUE_NODE_PREFIX + String(name)) != nullptr) { + if (new_unique_names.find(name) != -1 || get_tree()->get_edited_scene_root()->get_node_or_null("%" + String(name)) != nullptr) { cant_be_set_unique_names.push_back(name); } else { new_unique_nodes.push_back(node);