diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-11-22 13:12:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 13:12:34 +0100 |
commit | 835f4dedafca255e154dd204e335097c787c363a (patch) | |
tree | a02327f5ceb95fba0a12ea86ead9efd5ea465b7d | |
parent | 608c029794530e6322b0898db527d78634122276 (diff) | |
parent | abd41dedb00b8526517ab2e5231c2065e7b96768 (diff) |
Merge pull request #55186 from timothyqiu/theme-picker-reset
-rw-r--r-- | editor/plugins/theme_editor_preview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/theme_editor_preview.cpp b/editor/plugins/theme_editor_preview.cpp index df0b35908b..f13fcb005f 100644 --- a/editor/plugins/theme_editor_preview.cpp +++ b/editor/plugins/theme_editor_preview.cpp @@ -71,6 +71,9 @@ void ThemeEditorPreview::_preview_visibility_changed() { void ThemeEditorPreview::_picker_button_cbk() { picker_overlay->set_visible(picker_button->is_pressed()); + if (picker_button->is_pressed()) { + _reset_picker_overlay(); + } } Control *ThemeEditorPreview::_find_hovered_control(Control *p_parent, Vector2 p_mouse_position) { |