Fix asset paths to be from project rather than packages
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user