summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-14 15:35:34 -0300
committerGitHub <noreply@github.com>2018-08-14 15:35:34 -0300
commit6808583306d48795099702b4c183e3a496906a94 (patch)
tree98bb87836c7c4868631262fe1b572def4992310d
parentecd5d0ad1248a3246aec405590627db133bd8af5 (diff)
parentc72cab1293e98ff3b88f33d92c25798fa6e3ef27 (diff)
Merge pull request #21015 from godotengine/revert-20112-openvisualeditorbutton
Revert "Open visual editor when "open editor" button in the inspector is pressed"
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index 48c4dc7689..59798bfab3 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2254,7 +2254,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_resource(res.ptr());
+ EditorNode::get_singleton()->edit_item(res.ptr());
}
}