Skip to content

Commit

Permalink
Merge pull request godotengine#71398 from honix/property-revert-relea…
Browse files Browse the repository at this point in the history
…se-focus

Fix property revert doesn't revert selected fields
  • Loading branch information
akien-mga committed Feb 19, 2023
2 parents be3e5c5 + 6f416ea commit f2a2e47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/editor_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f2a2e47

Please sign in to comment.