Fix Theme Editor crash when clicking the element picker

(cherry picked from commit abd41dedb0)
This commit is contained in:
Haoyu Qiu 2021-11-21 18:39:46 +08:00 committed by Rémi Verschelde
parent ac56f95685
commit c6927a9790
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -71,6 +71,9 @@ void ThemeEditorPreview::_preview_visibility_changed() {
void ThemeEditorPreview::_picker_button_cbk() { void ThemeEditorPreview::_picker_button_cbk() {
picker_overlay->set_visible(picker_button->is_pressed()); 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) { Control *ThemeEditorPreview::_find_hovered_control(Control *p_parent, Vector2 p_mouse_position) {