mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
remove cruft
This commit is contained in:
parent
14ec1b6295
commit
de54a0ac4b
1 changed files with 1 additions and 7 deletions
|
@ -105,12 +105,7 @@ void AnimInverseKinematics::computeTargets(const AnimVariantMap& animVars, std::
|
|||
}
|
||||
target.setPose(rotation, translation);
|
||||
target.setIndex(targetVar.jointIndex);
|
||||
if (target.getType() == IKTarget::Type::HmdHead) {
|
||||
// HmdHead target always goes to beginning of the list
|
||||
targets.insert(targets.begin(), target);
|
||||
} else {
|
||||
targets.push_back(target);
|
||||
}
|
||||
targets.push_back(target);
|
||||
if (targetVar.jointIndex > _maxTargetIndex) {
|
||||
_maxTargetIndex = targetVar.jointIndex;
|
||||
}
|
||||
|
@ -142,7 +137,6 @@ void AnimInverseKinematics::solveWithCyclicCoordinateDescent(const std::vector<I
|
|||
absolutePoses.resize(_relativePoses.size());
|
||||
computeAbsolutePoses(absolutePoses);
|
||||
|
||||
//if (targets[0].getType() == IKTarget::Type::HmdHead) {
|
||||
// clear the accumulators before we start the IK solver
|
||||
for (auto& accumulator: _accumulators) {
|
||||
accumulator.clearAndClean();
|
||||
|
|
Loading…
Reference in a new issue