mirror of
https://github.com/godotengine/godot
synced 2024-09-05 12:18:25 +00:00
Merge pull request #69857 from bruvzg/bim_font_no_clean
[TextServer] Do not clean up font texture cache when setting `allow_system_fallback` property.
This commit is contained in:
commit
a4131b61b1
|
@ -2151,11 +2151,8 @@ void TextServerAdvanced::_font_set_allow_system_fallback(const RID &p_font_rid,
|
|||
ERR_FAIL_COND(!fd);
|
||||
|
||||
MutexLock lock(fd->mutex);
|
||||
if (fd->allow_system_fallback != p_allow_system_fallback) {
|
||||
_font_clear_cache(fd);
|
||||
fd->allow_system_fallback = p_allow_system_fallback;
|
||||
}
|
||||
}
|
||||
|
||||
bool TextServerAdvanced::_font_is_allow_system_fallback(const RID &p_font_rid) const {
|
||||
FontAdvanced *fd = font_owner.get_or_null(p_font_rid);
|
||||
|
|
|
@ -1246,11 +1246,8 @@ void TextServerFallback::_font_set_allow_system_fallback(const RID &p_font_rid,
|
|||
ERR_FAIL_COND(!fd);
|
||||
|
||||
MutexLock lock(fd->mutex);
|
||||
if (fd->allow_system_fallback != p_allow_system_fallback) {
|
||||
_font_clear_cache(fd);
|
||||
fd->allow_system_fallback = p_allow_system_fallback;
|
||||
}
|
||||
}
|
||||
|
||||
bool TextServerFallback::_font_is_allow_system_fallback(const RID &p_font_rid) const {
|
||||
FontFallback *fd = font_owner.get_or_null(p_font_rid);
|
||||
|
|
Loading…
Reference in a new issue