Merge pull request #71398 from honix/property-revert-release-focus

Fix property revert doesn't revert selected fields
This commit is contained in:
Rémi Verschelde 2023-02-19 01:02:20 +01:00
commit f2a2e47009
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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);