From 7f63b0e8cdc0ef2369d3b623c5943e2b6cd1b1ae Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 22 Feb 2019 17:42:29 -0300 Subject: Added a workaround to avoid crashes due to how TileSet editor works, fixes #23672 Also fixed a few uninitialized memory variables. --- scene/main/viewport.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/main') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 31b73100b9..090e6bdcb0 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -3202,6 +3202,8 @@ Viewport::Viewport() { gui.drag_attempted = false; gui.canvas_sort_index = 0; gui.roots_order_dirty = false; + gui.mouse_focus = NULL; + gui.last_mouse_focus = NULL; msaa = MSAA_DISABLED; hdr = true; -- cgit v1.2.3