diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_inspector.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 36462f6805..da4c1328cd 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -702,6 +702,7 @@ void EditorProperty::gui_input(const Ref<InputEvent> &p_event) { if (revert_rect.has_point(mpos)) { accept_event(); + get_viewport()->gui_release_focus(); bool is_valid_revert = false; Variant revert_value = EditorPropertyRevert::get_property_revert_value(object, property, &is_valid_revert); ERR_FAIL_COND(!is_valid_revert); |