refactor: reuse local variable

This commit is contained in:
Tarocco
2020-09-24 20:04:43 -07:00
parent 386528a892
commit 9f9a21bb73

View File

@@ -1729,9 +1729,9 @@ void LLDAELoader::processJointToNodeMapping( domNode* pNode )
std::string nodeName = pNode->getName(); std::string nodeName = pNode->getName();
if (!nodeName.empty()) if (!nodeName.empty())
{ {
mJointsFromNode.push_front(pNode->getName()); mJointsFromNode.push_front(nodeName);
// Alias joint node SIDs to joint names for compatibility // Alias joint node SIDs to joint names for compatibility
mJointMap[pNode->getSid()] = mJointMap[pNode->getName()]; mJointMap[pNode->getSid()] = mJointMap[nodeName];
} }
//2. Handle the kiddo's //2. Handle the kiddo's
processChildJoints(pNode); processChildJoints(pNode);