summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-16 23:05:37 +0200
committerGitHub <noreply@github.com>2021-05-16 23:05:37 +0200
commit2dadcde361d4f9e62f24a2cb9cb334b09b25bbcd (patch)
treea70ac373b3b244d2f4d2c55aaa74ccac8117b3c9
parentd4fc125fbc7d2a15ebb7ff2b472a64d9a71de023 (diff)
parentc8efcf81d288068f9c8b5803f57f2aa4e51e959e (diff)
Merge pull request #48760 from timothyqiu/tree-crash
Fix Tree::get_column_at_position crash
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 7028d7aed4..ed6239d41d 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -4334,6 +4334,8 @@ Tree::Tree() {
set_mouse_filter(MOUSE_FILTER_STOP);
set_clip_contents(true);
+
+ update_cache();
}
Tree::~Tree() {