summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-20 21:48:03 -0400
committerWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-20 22:28:07 -0400
commit0017e21521f6f0feecabc4bae2c72a66c780583b (patch)
treefebdc4136abb88fbf95204b7ba3c97073dd0502a /scene
parent35d57245193d37ac8cba5e2c8df7957f0239b19d (diff)
Fixed segfault when hovering over scene tree elements and showing tooltips.
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 7148cda5c4..e19e069282 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -1456,6 +1456,10 @@ void Viewport::_gui_show_tooltip() {
gui.tooltip_popup = NULL;
}
+ if (!gui.tooltip) {
+ return;
+ }
+
Control *rp = gui.tooltip->get_root_parent_control();
if (!rp)
return;