mirror of
https://github.com/godotengine/godot
synced 2024-09-05 10:48: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,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;
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
bool TextServerFallback::_font_is_allow_system_fallback(const RID &p_font_rid) const {
|
||||
|
|
Loading…
Reference in a new issue