瀏覽代碼

Dont print error when loading resource from cache

Ruslan Mustakov 7 年之前
父節點
當前提交
a6157245b1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      core/io/resource_loader.cpp

+ 2 - 1
core/io/resource_loader.cpp

@@ -202,7 +202,8 @@ RES ResourceLoader::load(const String &p_path, const String &p_type_hint, bool p
 
 		if (OS::get_singleton()->is_stdout_verbose())
 			print_line("load resource: " + local_path + " (cached)");
-
+		if (r_error)
+			*r_error = OK;
 		return RES(ResourceCache::get(local_path));
 	}