Merge pull request #58147 from Geometror/fix-tooltip-flicker

This commit is contained in:
Rémi Verschelde 2022-02-15 18:02:55 +01:00 committed by GitHub
commit 171021145d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1714,7 +1714,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
if (gui.tooltip_popup) {
if (gui.tooltip_control) {
String tooltip = _gui_get_tooltip(over, gui.tooltip_control->get_global_transform().xform_inv(mpos));
tooltip = tooltip.strip_edges();
if (tooltip.length() == 0) {
_gui_cancel_tooltip();
} else if (gui.tooltip_label) {