Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

[Project Manager] Fix `EngineUpdateLabel` processing text outside tree.

Pāvels Nadtočajevs59ad022146b5
diff --git a/scene/gui/link_button.cpp b/scene/gui/link_button.cpp
index ebc8882bc18..d6ab570e41b 100644
--- a/scene/gui/link_button.cpp
+++ b/scene/gui/link_button.cpp
@@ -36,6 +36,10 @@
#include "servers/display/accessibility_server.h"
void LinkButton::_shape() {
+ if (!is_inside_tree()) {
+ return;
+ }
+
Ref<Font> font = theme_cache.font;
int font_size = theme_cache.font_size;