mirror of
https://github.com/godotengine/godot
synced 2024-09-05 22:30:46 +00:00
Fix property revert doesn't revert selected fields
This commit is contained in:
parent
4c5e09f96a
commit
6f416ea104
|
@ -690,6 +690,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);
|
||||
|
|
Loading…
Reference in a new issue