fix reserve call that should have been resize - add extra handling to output error

This commit is contained in:
hultonha
2021-04-15 18:17:02 +01:00
parent 7c5f7181eb
commit 7ff0c5c33a
4 changed files with 17 additions and 3 deletions
@@ -86,7 +86,7 @@ namespace WhiteBox
{
success = assetHandler->SaveAssetData(meshAsset, &fileStream);
AZ_Printf(
"EditorWhiteBoxComponent", "Save %s. Location: %s", success ? "succeeded" : "failed",
"EditorWhiteBoxMeshAsset", "Save %s. Location: %s", success ? "succeeded" : "failed",
absoluteFilePath.c_str());
}
}
@@ -229,7 +229,15 @@ namespace WhiteBox
{
if (asset == m_meshAsset)
{
AZ_Warning("EditorWhiteBoxComponent", false, "OnAssetError: %s", asset.GetHint().c_str());
AZ_Warning("EditorWhiteBoxMeshAsset", false, "OnAssetError: %s", asset.GetHint().c_str());
}
}
void EditorWhiteBoxMeshAsset::OnAssetReloadError(AZ::Data::Asset<AZ::Data::AssetData> asset)
{
if (asset == m_meshAsset)
{
AZ_Warning("EditorWhiteBoxMeshAsset", false, "OnAssetReloadError: %s", asset.GetHint().c_str());
}
}