Skip to content

Commit

Permalink
Revert "Return error when no ResourceFormatLoader found."
Browse files Browse the repository at this point in the history
This reverts commit 6df3621.

Fixes godotengine#97153.
  • Loading branch information
akien-mga authored and laurentmackay committed Oct 30, 2024
1 parent 3623511 commit 1a59490
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/io/resource_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,6 @@ Ref<Resource> ResourceLoader::_load(const String &p_path, const String &p_origin
return res;
}

if (r_error) {
*r_error = ERR_FILE_UNRECOGNIZED;
}

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));

Expand Down

0 comments on commit 1a59490

Please sign in to comment.