Fix asset paths to be from project rather than packages

This commit is contained in:
2021-05-02 11:25:41 +02:00
parent 05f919c50f
commit fd595863dc
5 changed files with 25 additions and 5 deletions
+5
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>