refactor: reuse local variable
This commit is contained in:
@@ -1729,9 +1729,9 @@ void LLDAELoader::processJointToNodeMapping( domNode* pNode )
|
||||
std::string nodeName = pNode->getName();
|
||||
if (!nodeName.empty())
|
||||
{
|
||||
mJointsFromNode.push_front(pNode->getName());
|
||||
mJointsFromNode.push_front(nodeName);
|
||||
// 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
|
||||
processChildJoints(pNode);
|
||||
|
||||
Reference in New Issue
Block a user