summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2018-07-28 21:16:20 +0200
committerHein-Pieter van Braam <hp@tmm.cx>2018-07-28 21:16:20 +0200
commit2ef66def4615594b87340aed2b02adf2204c74c2 (patch)
tree49ea65ef8d62b081d2027b6e7ffddf817d85618a
parent07129deaeb767528e550344e1134f2739c89bdd0 (diff)
Revert "Open visual editor when "open editor" button in the inspector is pressed."
This reverts commit 0ae400f523b0e4aefc9cdbea5195a54e6e8268df.
-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 79490f1c8e..e77fcadeed 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2173,7 +2173,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());
}
}