ソースを参照

ResourceLoader: Fix inverse 'if' on the cache mode

Mateo Kuruk Miccino 4 年 前
コミット
472673b38d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      core/io/resource_loader.cpp

+ 1 - 1
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