mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 03:54:01 +02:00
Update AnimInverseKinematics.cpp
This commit is contained in:
parent
080d42be39
commit
c79eb479f0
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ void AnimInverseKinematics::computeAndCacheSplineJointInfosForIKTarget(const Ani
|
|||
|
||||
int index = target.getIndex();
|
||||
int endIndex = _skeleton->getParentIndex(_hipsIndex);
|
||||
while (index != endIndex && index > -1) {
|
||||
while (index != endIndex && index != -1) {
|
||||
AnimPose defaultPose = _skeleton->getAbsoluteDefaultPose(index);
|
||||
|
||||
float ratio = glm::dot(defaultPose.trans() - basePose.trans(), baseToTipNormal) / baseToTipLength;
|
||||
|
|
Loading…
Reference in a new issue