--Code changes

-Cleanup and small bug fix for the new animation preview feature.
This commit is contained in:
Person
2022-02-28 20:36:11 -07:00
parent 4bbc8466e2
commit 2909af2408
2 changed files with 12 additions and 26 deletions

View File

@ -668,18 +668,10 @@ void XmlToEmber<T>::ScanForEmberNodes(xmlNode* curNode, const char* parentFile,
static const char* CheckNameVal(xmlNode* node, const char* name)
{
if (const auto att = node->properties)
{
if (!Compare(att->name, "name"))
{
if (const auto attStr = XC(xmlGetProp(node, att->name)))
{
if (!Compare(attStr, name))
{
return CCX(attStr);
}
}
}
}
return nullptr;
}