mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +02:00
Sign fix.
This commit is contained in:
parent
11fedb23cd
commit
62134ebc4c
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ void SkeletonModel::applyPalmData(int jointIndex, const QVector<int>& fingerJoin
|
||||||
if (length > EPSILON) {
|
if (length > EPSILON) {
|
||||||
direction += fingerVector / length;
|
direction += fingerVector / length;
|
||||||
}
|
}
|
||||||
fingerVector = glm::inverse(palmRotation) * fingerVector;
|
fingerVector = glm::inverse(palmRotation) * fingerVector * -sign;
|
||||||
IndexValue indexValue = { i, atan2f(fingerVector.z, fingerVector.x) };
|
IndexValue indexValue = { i, atan2f(fingerVector.z, fingerVector.x) };
|
||||||
fingerIndices.append(indexValue);
|
fingerIndices.append(indexValue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue