diff options
| author | Nuno Donato | 2017-04-12 12:24:06 +0100 |
|---|---|---|
| committer | Nuno Donato | 2017-04-12 13:32:22 +0100 |
| commit | 2025672e7b206799f8f184441cbbfc44f5a5c9f9 (patch) | |
| tree | d38225a0de1880845ee0b9770c6b17b50300f0c4 /editor/editor_node.cpp | |
| parent | e46af1e23668e23160604742f8f1d22898796d1c (diff) | |
| download | godot-2025672e7b206799f8f184441cbbfc44f5a5c9f9.tar.gz godot-2025672e7b206799f8f184441cbbfc44f5a5c9f9.tar.zst godot-2025672e7b206799f8f184441cbbfc44f5a5c9f9.zip | |
Removed the deprecated Import menu from the main editor.
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 9baa20379..17b1a5716 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -447,18 +447,6 @@ void EditorNode::_sources_changed(bool p_exist) { void EditorNode::_vp_resized() { } -void EditorNode::_rebuild_import_menu() { - PopupMenu *p = import_menu->get_popup(); - p->clear(); -//p->add_item(TTR("Node From Scene"), FILE_IMPORT_SUBSCENE); -//p->add_separator(); -#if 0 - for (int i = 0; i < editor_import_export->get_import_plugin_count(); i++) { - p->add_item(editor_import_export->get_import_plugin(i)->get_visible_name(), IMPORT_PLUGIN_BASE + i); - } -#endif -} - void EditorNode::_node_renamed() { if (property_editor) @@ -5257,15 +5245,6 @@ EditorNode::EditorNode() { menu_panel->add_child( resource_menu ); #endif - import_menu = memnew(MenuButton); - import_menu->set_tooltip(TTR("Import assets to the project.")); - import_menu->set_text(TTR("Import")); - //import_menu->set_icon(gui_base->get_icon("Save","EditorIcons")); - left_menu_hb->add_child(import_menu); - - p = import_menu->get_popup(); - p->connect("id_pressed", this, "_menu_option"); - tool_menu = memnew(MenuButton); tool_menu->set_tooltip(TTR("Miscellaneous project or scene-wide tools.")); tool_menu->set_text(TTR("Tools")); @@ -5960,8 +5939,6 @@ EditorNode::EditorNode() { circle_step_frame = Engine::get_singleton()->get_frames_drawn(); circle_step = 0; - _rebuild_import_menu(); - editor_plugin_screen = NULL; editor_plugins_over = memnew(EditorPluginList); |
