[TextServer] Do not clean up font texture cache when setting allow_system_fallback property.

This commit is contained in:
bruvzg 2022-12-10 17:07:42 +02:00
parent 0c1273629d
commit 3395539ed4
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38
2 changed files with 2 additions and 8 deletions

View File

@ -2151,10 +2151,7 @@ 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;
}
fd->allow_system_fallback = p_allow_system_fallback;
}
bool TextServerAdvanced::_font_is_allow_system_fallback(const RID &p_font_rid) const {

View File

@ -1246,10 +1246,7 @@ 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;
}
fd->allow_system_fallback = p_allow_system_fallback;
}
bool TextServerFallback::_font_is_allow_system_fallback(const RID &p_font_rid) const {