From 6f416ea1049325a68510786e5b8947a849abf69a Mon Sep 17 00:00:00 2001 From: Fedor Shchukin Date: Sat, 14 Jan 2023 17:39:21 +0300 Subject: [PATCH] Fix property revert doesn't revert selected fields --- editor/editor_inspector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 8723354e843..547dd72a7c5 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -690,6 +690,7 @@ void EditorProperty::gui_input(const Ref &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);