Fix regression from d65ae8de96

This commit is contained in:
Wojtek Figat
2021-03-23 09:17:45 +01:00
parent fcd86bccf5
commit fad1e6fdfc

View File

@@ -362,12 +362,6 @@ bool BinaryAsset::SaveToAsset(const StringView& path, AssetInitData& data, bool
if (binaryAsset)
binaryAsset->_isSaving = false;
if (!result)
{
// Ensure to have valid cached data about the asset in the registry
Content::GetRegistry()->RegisterAsset(data.Header, pathNorm);
}
return result;
}