Godot Engine – Multi-platform 2D and 3D game engine
Fix null font RID errors when changing the default font of an empty Label
huanxiangxingyun702f7eaae228
diff --git a/scene/gui/label.cpp b/scene/gui/label.cppindex cc98f7797b2..61253942eee 100644--- a/scene/gui/label.cpp+++ b/scene/gui/label.cpp@@ -307,6 +307,9 @@ void Label::_shape_internal() const {if (xl_text.length() == 0) {minsize = Size2(1, get_line_height());+ for (Paragraph ¶ : paragraphs) {+ para.lines_dirty = false;+ }return;}