Expose EditorInspector.edit to scripting

This commit is contained in:
Aaron Franke
2024-07-21 17:11:24 -07:00
parent b9437c3938
commit 298daa8b6f
2 changed files with 9 additions and 0 deletions

View File

@ -4648,6 +4648,7 @@ void EditorInspector::_handle_menu_option(int p_option) {
}
void EditorInspector::_bind_methods() {
ClassDB::bind_method(D_METHOD("edit", "object"), &EditorInspector::edit);
ClassDB::bind_method("_edit_request_change", &EditorInspector::_edit_request_change);
ClassDB::bind_method("get_selected_path", &EditorInspector::get_selected_path);
ClassDB::bind_method("get_edited_object", &EditorInspector::get_edited_object);