summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2018-01-11 20:44:13 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2018-01-11 20:46:18 +0700
commita6157245b169d0bf364e2c1d3868ff0f5dde9d59 (patch)
treebbadabbd685a9ff3d1f9b655957144f964117e26 /core/io
parent554e95747c07afa893a2c4c0445370dda57aa7d0 (diff)
Dont print error when loading resource from cache
Diffstat (limited to 'core/io')
-rw-r--r--core/io/resource_loader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp
index 87add585eb..1351030d1e 100644
--- a/core/io/resource_loader.cpp
+++ b/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));
}