diff options
author | Juan Linietsky <juan@godotengine.org> | 2019-02-22 17:42:29 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2019-02-22 17:42:29 -0300 |
commit | 7f63b0e8cdc0ef2369d3b623c5943e2b6cd1b1ae (patch) | |
tree | 2fffc027861c9925f9f978db7664d9462cc82cd6 /scene/main | |
parent | 16e67388a2c46e9d74d866a6cadd4351e8c57a12 (diff) |
Added a workaround to avoid crashes due to how TileSet editor works, fixes #23672
Also fixed a few uninitialized memory variables.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |