From 0017e21521f6f0feecabc4bae2c72a66c780583b Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Sun, 20 Aug 2017 21:48:03 -0400 Subject: [PATCH] Fixed segfault when hovering over scene tree elements and showing tooltips. --- scene/main/viewport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 7148cda5c47..e19e069282b 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;