Skip to content

armgit / godot

Public Imported from GitHub
0

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

Changed character skipping condition in Label3D

Nursultan Mamatov5bfa8dd73621
diff --git a/scene/3d/label_3d.cpp b/scene/3d/label_3d.cpp
index 141d150d583..bcc5a1b1ba5 100644
--- a/scene/3d/label_3d.cpp
+++ b/scene/3d/label_3d.cpp
@@ -356,7 +356,7 @@ void Label3D::_generate_glyph_surfaces(const Glyph &p_glyph, Vector2 &r_offset,
gl_of = Vector2(0, -gl_sz.y);
}
- if (gl_uv.size.x <= 2 || gl_uv.size.y <= 2) {
+ if (p_glyph.font_rid.is_valid() && tex.is_null()) {
r_offset.x += p_glyph.advance * pixel_size * p_glyph.repeat; // Nothing to draw.
return;
}