Fix asset cache when loading asset from path with relative parts
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user