Merge pull request #46499 from kuruk-mm/fix_cache_load

ResourceLoader: Fix inverse 'if' on the cache mode
This commit is contained in:
Rémi Verschelde 2021-02-28 10:32:49 +01:00 committed by GitHub
commit 8faecd6a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,7 +518,7 @@ RES ResourceLoader::load(const String &p_path, const String &p_type_hint, Resour
local_path = ProjectSettings::get_singleton()->localize_path(p_path);
}
if (p_cache_mode == ResourceFormatLoader::CACHE_MODE_IGNORE) {
if (p_cache_mode != ResourceFormatLoader::CACHE_MODE_IGNORE) {
thread_load_mutex->lock();
//Is it already being loaded? poll until done