mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Open visual editor when "open editor" button in the inspector is pressed.
Fixes #20111
This commit is contained in:
@@ -2000,7 +2000,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_item(res.ptr());
|
EditorNode::get_singleton()->edit_resource(res.ptr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user