Add Content.GetEditorAssetPath

This commit is contained in:
Wojciech Figat
2022-08-08 11:48:16 +02:00
parent a4cdca80fc
commit 0eba11f1eb
3 changed files with 13 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ bool AssetsCache::Save(const StringView& path, const Registry& entries, const Pa
const String& AssetsCache::GetEditorAssetPath(const Guid& id) const
{
ScopeLock lock(_locker);
#if USE_EDITOR
auto e = _registry.TryGet(id);
return e ? e->Info.Path : String::Empty;