diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-11 08:34:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 08:34:21 +0100 |
commit | ea865d0e7ee6fb3f605406355bed1d975d84dca8 (patch) | |
tree | c40dd958f4a09ac0013ed907390d7859458fe374 | |
parent | 74381c380bf75bb991539bc0c0728876a944f78b (diff) | |
parent | 5deb6497a10981c1137b22e34c9fc91c5e8f8872 (diff) |
Merge pull request #34241 from timothyqiu/sync-fallbacks-size-32701
Fixes crash when using DynamicFont::set_font_data
-rw-r--r-- | scene/resources/dynamic_font.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index 99a2881d58..7524571956 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -657,6 +657,7 @@ void DynamicFont::_reload_cache() { if (!data.is_valid()) { data_at_size.unref(); outline_data_at_size.unref(); + fallbacks.resize(0); fallback_data_at_size.resize(0); fallback_outline_data_at_size.resize(0); return; |