From b638967d0102fbb8dbd19f52a549d32b7aa1a442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 19 Sep 2024 12:41:28 +0200 Subject: [PATCH] Revert "Return error when no ResourceFormatLoader found." This reverts commit 6df3621b472f7033de9d8391a2057a64aa5a42d6. Fixes #97153. --- core/io/resource_loader.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 94f6caf6eb8..f026d5416ca 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -303,10 +303,6 @@ Ref 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(), vformat("Failed loading resource: %s. Make sure resources have been imported by opening the project in the editor at least once.", p_path));