refactor: reuse local variable
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user