diff options
| author | Juan Linietsky | 2017-01-25 21:55:59 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-25 21:57:08 -0300 |
| commit | 96de0141ccef3bb035574010816dafdbfc17eb63 (patch) | |
| tree | 24bcad418177b4aba1a24d959a50ff401028f0ea /tools/editor/property_editor.cpp | |
| parent | ae258e2679bd9deda8b311d030771fab03303833 (diff) | |
| download | godot-96de0141ccef3bb035574010816dafdbfc17eb63.tar.gz godot-96de0141ccef3bb035574010816dafdbfc17eb63.tar.zst godot-96de0141ccef3bb035574010816dafdbfc17eb63.zip | |
Removed import/export system, will start new one from scratch.
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/property_editor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index e5dce0524..19720dfd6 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -208,13 +208,13 @@ void CustomPropertyEditor::_menu_option(int p_which) { case OBJ_MENU_REIMPORT: { RES r=v; - if (r.is_valid() && r->get_import_metadata().is_valid()) { +/* if (r.is_valid() && r->get_import_metadata().is_valid()) { Ref<ResourceImportMetadata> rimd = r->get_import_metadata(); Ref<EditorImportPlugin> eip = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor()); if (eip.is_valid()) { eip->import_dialog(r->get_path()); } - } + }*/ } break; case OBJ_MENU_NEW_SCRIPT: { @@ -945,11 +945,11 @@ bool CustomPropertyEditor::edit(Object* p_owner,const String& p_name,Variant::Ty menu->add_icon_item(get_icon("EditResource","EditorIcons"),"Edit",OBJ_MENU_EDIT); menu->add_icon_item(get_icon("Del","EditorIcons"),"Clear",OBJ_MENU_CLEAR); menu->add_icon_item(get_icon("Duplicate","EditorIcons"),"Make Unique",OBJ_MENU_MAKE_UNIQUE); - RES r = v; + /*RES r = v; if (r.is_valid() && r->get_path().is_resource_file() && r->get_import_metadata().is_valid()) { menu->add_separator(); menu->add_icon_item(get_icon("ReloadSmall","EditorIcons"),"Re-Import",OBJ_MENU_REIMPORT); - } + }*/ /*if (r.is_valid() && r->get_path().is_resource_file()) { menu->set_item_tooltip(1,r->get_path()); } else if (r.is_valid()) { |
