summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index c3404078db..4baec0f995 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -1538,7 +1538,7 @@ void Viewport::_gui_show_tooltip() {
gui.tooltip_control,
gui.tooltip_control->get_global_transform().xform_inv(gui.last_mouse_pos),
&tooltip_owner);
- tooltip_text.strip_edges();
+ tooltip_text = tooltip_text.strip_edges();
if (tooltip_text.is_empty()) {
return; // Nothing to show.
}