diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-01-05 15:14:27 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-01-05 15:14:27 +0100 |
commit | a4af94068a6223b4d0a5f5f8d7921742812bcfb9 (patch) | |
tree | 0260faf33555553f741ade949babedb3ce623243 | |
parent | 118e4d3cf7d8c75f90636d3b03d274b4a9839181 (diff) |
Tooltips: Fix unassigned strip_edges() call on text
Fixes #43940, was a regression from #43280.
-rw-r--r-- | scene/main/viewport.cpp | 2 |
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. } |