From c30d1615626bd935c824e2d4c312afb60587965d Mon Sep 17 00:00:00 2001 From: Hendrik Brucker Date: Tue, 15 Feb 2022 16:29:03 +0100 Subject: [PATCH] Fix tooltip flickering in some cases --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index a1ff95ea9a4..0a46614fd3d 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1714,7 +1714,7 @@ void Viewport::_gui_input_event(Ref 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) {