Merge pull request #625 from aws-lumberyard-dev/Atom/mnaumov/ATOM-15291

[ATOM-15291] Better AP error message when missing image present
This commit is contained in:
AMZN-mnaumov
2021-05-06 17:59:57 -07:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
@@ -851,7 +851,9 @@ namespace ImageProcessingAtom
if (preset == nullptr)
{
AZ_Assert(false, "preset should always exist");
AZStd::string uuidStr;
textureSettings.m_preset.ToString(uuidStr);
AZ_Assert(false, "%s cannot find image preset with ID %s.", imageFilePath.c_str(), uuidStr.c_str());
return nullptr;
}
@@ -739,7 +739,9 @@ namespace ImageProcessing
if (preset == nullptr)
{
AZ_Assert(false, "preset should always exist");
AZStd::string uuidStr;
textureSettings.m_preset.ToString(uuidStr);
AZ_Assert(false, "%s cannot find image preset with ID %s.", imageFilePath.c_str(), uuidStr.c_str());
return nullptr;
}