mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 13:13:25 +02:00
code review feedback
This commit is contained in:
parent
b0177c2522
commit
de199bff9d
1 changed files with 4 additions and 2 deletions
|
@ -930,7 +930,7 @@ const AnimPoseVec& AnimInverseKinematics::overlay(const AnimVariantMap& animVars
|
|||
}
|
||||
}
|
||||
|
||||
// identity joint chains that have changed types this frame.
|
||||
// identify joint chains that have changed types this frame.
|
||||
_prevJointChainInfoVec.resize(jointChainInfoVec.size());
|
||||
for (size_t i = 0; i < _prevJointChainInfoVec.size(); i++) {
|
||||
if (_prevJointChainInfoVec[i].timer <= 0.0f &&
|
||||
|
@ -944,7 +944,9 @@ const AnimPoseVec& AnimInverseKinematics::overlay(const AnimVariantMap& animVars
|
|||
{
|
||||
PROFILE_RANGE_EX(simulation_animation, "ik/shiftHips", 0xffff00ff, 0);
|
||||
|
||||
if (_hipsTargetIndex >= 0 && _hipsTargetIndex >= 0 && _hipsTargetIndex < (int)targets.size()) {
|
||||
if (_hipsTargetIndex >= 0) {
|
||||
assert(_hipsTargetIndex < (int)targets.size());
|
||||
|
||||
// slam the hips to match the _hipsTarget
|
||||
|
||||
AnimPose absPose = targets[_hipsTargetIndex].getPose();
|
||||
|
|
Loading…
Reference in a new issue