Fixes clang cases

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-09-03 13:27:31 -07:00
parent 6773af91bc
commit ec8e6bcadf
19 changed files with 96 additions and 136 deletions
@@ -256,20 +256,12 @@ const AZ::SerializeContext::ClassElement* CUiAnimAzEntityNode::ComputeOffsetFrom
if (mismatch)
{
AZStd::string warnMsg = "Data mismatch reading animation data for type ";
warnMsg += classData->m_typeId.ToString<AZStd::string>();
warnMsg += ". The field \"";
warnMsg += paramData.GetName();
if (!element)
{
warnMsg += "\" cannot be found.";
}
else
{
warnMsg += "\" has a different type to that in the animation data.";
}
warnMsg += " This part of the animation data will be ignored.";
CryWarning(VALIDATOR_MODULE_SHINE, VALIDATOR_WARNING, warnMsg.c_str());
CryWarning(VALIDATOR_MODULE_SHINE, VALIDATOR_WARNING,
"Data mismatch reading animation data for type %s. The field \"%s\" %s. This part of the animation data will be ignored.",
classData->m_typeId.ToString<AZStd::string>().c_str(),
paramData.GetName(),
(!element ? "cannot be found" : "has a different type to that in the animation data")
);
return nullptr;
}
}