mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
properly track lowestMovedIndex
This commit is contained in:
parent
48f6a9c05f
commit
449d566d2a
1 changed files with 4 additions and 1 deletions
|
@ -156,7 +156,10 @@ void AnimInverseKinematics::solveWithCyclicCoordinateDescent(const std::vector<I
|
|||
// solve all targets
|
||||
int lowestMovedIndex = (int)_relativePoses.size();
|
||||
for (auto& target: targets) {
|
||||
lowestMovedIndex = solveTargetWithCCD(target, absolutePoses);
|
||||
int lowIndex = solveTargetWithCCD(target, absolutePoses);
|
||||
if (lowIndex < lowestMovedIndex) {
|
||||
lowestMovedIndex = lowIndex;
|
||||
}
|
||||
}
|
||||
|
||||
// harvest accumulated rotations and apply the average
|
||||
|
|
Loading…
Reference in a new issue