diff options
author | Mateo Kuruk Miccino <mateomiccino@gmail.com> | 2021-02-27 21:53:27 -0300 |
---|---|---|
committer | Mateo Kuruk Miccino <mateomiccino@gmail.com> | 2021-02-27 21:53:27 -0300 |
commit | 472673b38d2f670d1478f852d20268ce81646a02 (patch) | |
tree | acfea0566b81be37a43132b0038034a5756bca52 /core/io/resource_loader.cpp | |
parent | af5a67b8d8d2e6676c13e0f96997d14a7bb75910 (diff) |
ResourceLoader: Fix inverse 'if' on the cache mode
Diffstat (limited to 'core/io/resource_loader.cpp')
-rw-r--r-- | core/io/resource_loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index cba9a47187..8275dd0ad4 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -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 |