mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Merge pull request #97180 from akien-mga/revert-95508
Revert "Return error when no ResourceFormatLoader found."
This commit is contained in:
commit
a05e06f9cf
@ -303,10 +303,6 @@ Ref<Resource> ResourceLoader::_load(const String &p_path, const String &p_origin
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r_error) {
|
|
||||||
*r_error = ERR_FILE_UNRECOGNIZED;
|
|
||||||
}
|
|
||||||
|
|
||||||
ERR_FAIL_COND_V_MSG(found, Ref<Resource>(),
|
ERR_FAIL_COND_V_MSG(found, Ref<Resource>(),
|
||||||
vformat("Failed loading resource: %s. Make sure resources have been imported by opening the project in the editor at least once.", p_path));
|
vformat("Failed loading resource: %s. Make sure resources have been imported by opening the project in the editor at least once.", p_path));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user