diff options
| author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-05-09 12:47:10 +0300 |
|---|---|---|
| committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-07-06 14:12:36 +0300 |
| commit | 344ba0ffaf3f7d39bd5a1304ba6a6070d442a963 (patch) | |
| tree | 318acb34fb6d8915522c0c05e5c9fb916f8e1227 /scene/gui/control.cpp | |
| parent | cf194847468e00de682074a14b2cf4ccf7b69188 (diff) | |
| download | redot-engine-344ba0ffaf3f7d39bd5a1304ba6a6070d442a963.tar.gz | |
Refactor Font configuration and import UI, and Font resources.
Diffstat (limited to 'scene/gui/control.cpp')
| -rw-r--r-- | scene/gui/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 6e2db68db0..15ff1d3ed6 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -1115,7 +1115,7 @@ Ref<StyleBox> Control::get_theme_stylebox(const StringName &p_name, const String Ref<Font> Control::get_theme_font(const StringName &p_name, const StringName &p_theme_type) const { if (p_theme_type == StringName() || p_theme_type == get_class_name() || p_theme_type == data.theme_type_variation) { const Ref<Font> *font = data.font_override.getptr(p_name); - if (font && (*font)->get_data_count() > 0) { + if (font) { return *font; } } |
