Fix cache record for file load errors in resource manager (#823)

This commit is contained in:
Archez
2025-02-19 16:46:40 -05:00
committed by GitHub
parent f776531abf
commit 28bb246294
+1
View File
@@ -143,6 +143,7 @@ std::shared_ptr<IResource> ResourceManager::LoadResourceProcess(const ResourceId
auto file = LoadFileProcess(identifier.Path, initData);
if (file == nullptr) {
SPDLOG_TRACE("Failed to load resource file at path {}", identifier.Path);
mResourceCache[identifier] = ResourceLoadError::NotFound;
return nullptr;
}