summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorNuno Donato <nunodonato@gmail.com>2018-07-12 12:41:22 +0100
committerNuno Donato <nunodonato@gmail.com>2018-07-12 12:41:22 +0100
commit0ae400f523b0e4aefc9cdbea5195a54e6e8268df (patch)
tree48694ad6bece1500c4492f7ecc8cca5db1a55426 /editor
parentd488c35efabee9d9317a91cdb905a460e7fce0af (diff)
Open visual editor when "open editor" button in the inspector is pressed.
Fixes #20111
Diffstat (limited to 'editor')
-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 064569dea0..c23f28aed4 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -2000,7 +2000,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());
}
}