From 72134a7f2a4af1781208d6c46909d29caa5dbe19 Mon Sep 17 00:00:00 2001 From: hilfazer Date: Mon, 22 Feb 2021 16:50:44 +0100 Subject: Support for duplication of nested instanced scenes --- editor/scene_tree_dock.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'editor') diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 58589467a8..3b48685264 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -672,7 +672,6 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { editor_data->get_undo_redo().add_do_method(editor_selection, "clear"); Node *dupsingle = nullptr; - List editable_children; selection.sort_custom(); @@ -688,10 +687,6 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { Map duplimap; Node *dup = node->duplicate_from_editor(duplimap); - if (EditorNode::get_singleton()->get_edited_scene()->is_editable_instance(node)) { - editable_children.push_back(dup); - } - ERR_CONTINUE(!dup); if (selection.size() == 1) { @@ -726,11 +721,6 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { if (dupsingle) { editor->push_item(dupsingle); } - - for (List::Element *E = editable_children.back(); E; E = E->prev()) { - _toggle_editable_children(E->get()); - } - } break; case TOOL_REPARENT: { if (!profile_allow_editing) { -- cgit v1.2.3