Fix asset cache when loading asset from path with relative parts

This commit is contained in:
Wojtek Figat
2021-08-04 11:26:24 +02:00
parent 9464c509fa
commit 1c9abef342

View File

@@ -430,7 +430,7 @@ Asset* Content::LoadAsync(const StringView& path, const ScriptingTypeHandle& typ
{
// Ensure path is in a valid format
String pathNorm(path);
FileSystem::NormalizePath(pathNorm);
StringUtils::PathRemoveRelativeParts(pathNorm);
#if USE_EDITOR
if (!FileSystem::FileExists(pathNorm))