From ad777201f60dbb66790ded7d792145bfe82a3e99 Mon Sep 17 00:00:00 2001 From: amantley Date: Tue, 27 Nov 2018 15:08:50 -0800 Subject: [PATCH] changed comment and cleaned up variable name in getJointName --- libraries/animation/src/AnimSkeleton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/animation/src/AnimSkeleton.cpp b/libraries/animation/src/AnimSkeleton.cpp index b124f55641..36664a41fe 100644 --- a/libraries/animation/src/AnimSkeleton.cpp +++ b/libraries/animation/src/AnimSkeleton.cpp @@ -65,7 +65,7 @@ int AnimSkeleton::nameToJointIndex(const QString& jointName) const { auto itr = _jointIndicesByName.find(jointName); if (_fbxToHifiJointNameMapping.contains(jointName)) { // if the fbx joint name is different than the hifi standard then look up the - // index from that name. + // index from the fbx joint name. itr = _jointIndicesByName.find(_fbxToHifiJointNameMapping[jointName]); } if (itr != _jointIndicesByName.end()) { @@ -131,8 +131,8 @@ std::vector AnimSkeleton::getChildrenOfJoint(int jointIndex) const { const QString AnimSkeleton::getJointName(int jointIndex) const { QString jointName = _joints[jointIndex].name; - if (_fbxToHifiJointNameMapping.contains(_fbxToHifiJointNameMapping.key(_joints[jointIndex].name))) { - jointName = _fbxToHifiJointNameMapping.key(_joints[jointIndex].name); + if (_fbxToHifiJointNameMapping.contains(_fbxToHifiJointNameMapping.key(jointName))) { + jointName = _fbxToHifiJointNameMapping.key(jointName); } return jointName; }