mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
fixed mirroring helper functions contains left and contains right
This commit is contained in:
parent
572cdcd008
commit
a488364976
1 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ int AnimSkeleton::containsLeft(QString jointName) const {
|
|||
}
|
||||
}
|
||||
if (jointName.startsWith("Left")) {
|
||||
QString mirrorJointName = QString(i.key()).replace(0, 4, "Right");
|
||||
QString mirrorJointName = QString(jointName).replace(0, 4, "Right");
|
||||
mirrorJointIndex = nameToJointIndex(mirrorJointName);
|
||||
}
|
||||
return mirrorJointIndex;
|
||||
|
@ -288,7 +288,7 @@ int AnimSkeleton::containsRight(QString jointName) const {
|
|||
}
|
||||
}
|
||||
if (jointName.startsWith("Right")) {
|
||||
QString mirrorJointName = QString(i.key()).replace(0, 5, "Left");
|
||||
QString mirrorJointName = QString(jointName).replace(0, 5, "Left");
|
||||
mirrorJointIndex = nameToJointIndex(mirrorJointName);
|
||||
}
|
||||
return mirrorJointIndex;
|
||||
|
|
Loading…
Reference in a new issue