From 472673b38d2f670d1478f852d20268ce81646a02 Mon Sep 17 00:00:00 2001 From: Mateo Kuruk Miccino Date: Sat, 27 Feb 2021 21:53:27 -0300 Subject: [PATCH] ResourceLoader: Fix inverse 'if' on the cache mode --- core/io/resource_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index cba9a47187f..8275dd0ad44 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