[TextServer] Do not clean up font texture cache when setting allow_system_fallback
property.
This commit is contained in:
parent
0c1273629d
commit
3395539ed4
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user