Revert "Open visual editor when "open editor" button in the inspector is pressed"

This commit is contained in:
Juan Linietsky 2018-08-14 15:35:21 -03:00 committed by GitHub
parent ecd5d0ad12
commit c72cab1293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2254,7 +2254,7 @@ void EditorPropertyResource::_sub_inspector_object_id_selected(int p_id) {
void EditorPropertyResource::_open_editor_pressed() { void EditorPropertyResource::_open_editor_pressed() {
RES res = get_edited_object()->get(get_edited_property()); RES res = get_edited_object()->get(get_edited_property());
if (res.is_valid()) { if (res.is_valid()) {
EditorNode::get_singleton()->edit_resource(res.ptr()); EditorNode::get_singleton()->edit_item(res.ptr());
} }
} }