Fix asset paths to be from project rather than packages

This commit is contained in:
Wojtek Figat
2021-04-29 23:21:59 +02:00
parent 05f919c50f
commit fd595863dc
5 changed files with 25 additions and 5 deletions

View File

@@ -446,7 +446,12 @@ void BinaryAsset::OnDeleteObject()
const String& BinaryAsset::GetPath() const
{
#if USE_EDITOR
return Storage ? Storage->GetPath() : String::Empty;
#else
// In build all assets are packed into packages so use ID for original path lookup
return Content::GetRegistry()->GetAssetPath(_id);
#endif
}
/// <summary>