Merge pull request #20112 from nunodonato/openvisualeditorbutton

Open visual editor when "open editor" button in the inspector is pressed
This commit is contained in:
Thomas Herzog 2018-07-16 15:42:57 +02:00 committed by GitHub
commit 103524e6b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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