From 1b4fab3318734104ba29e725a6c5a5fb6c85464d Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 9 Dec 2020 11:20:55 +0200 Subject: [PATCH] [3.2] Fix fallback emoji font color. --- scene/resources/dynamic_font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index 4a3ccc86ace..7027660633a 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -326,7 +326,7 @@ float DynamicFontAtSize::draw_char(RID p_canvas_item, const Point2 &p_pos, CharT cpos.y -= font->get_ascent(); cpos.y += ch->v_align; Color modulate = p_modulate; - if (FT_HAS_COLOR(face)) { + if (FT_HAS_COLOR(font->face)) { modulate.r = modulate.g = modulate.b = 1.0; } RID texture = font->textures[ch->texture_idx].texture->get_rid();