mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 04:26:18 +02:00
fixed pole vector over writing with the old json
This commit is contained in:
parent
78d6e42fc8
commit
031dd5639b
1 changed files with 0 additions and 8 deletions
|
@ -1069,23 +1069,16 @@ void Rig::computeMotionAnimationState(float deltaTime, const glm::vec3& worldPos
|
|||
t += deltaTime;
|
||||
|
||||
if (_enableInverseKinematics) {
|
||||
|
||||
// animIK node json
|
||||
_animVars.set("ikOverlayAlpha", 1.0f);
|
||||
// animSpline json
|
||||
_animVars.set("splineIKEnabled", true);
|
||||
_animVars.set("leftHandIKEnabled", true);
|
||||
_animVars.set("rightHandIKEnabled", true);
|
||||
_animVars.set("leftFootIKEnabled", true);
|
||||
_animVars.set("rightFootIKEnabled", true);
|
||||
_animVars.set("leftHandPoleVectorEnabled", true);
|
||||
_animVars.set("rightHandPoleVectorEnabled", true);
|
||||
_animVars.set("leftFootPoleVectorEnabled", true);
|
||||
_animVars.set("rightFootPoleVectorEnabled", true);
|
||||
} else {
|
||||
// animIK node json
|
||||
_animVars.set("ikOverlayAlpha", 0.0f);
|
||||
// animSpline json
|
||||
_animVars.set("splineIKEnabled", false);
|
||||
_animVars.set("leftHandIKEnabled", false);
|
||||
_animVars.set("rightHandIKEnabled", false);
|
||||
|
@ -1097,7 +1090,6 @@ void Rig::computeMotionAnimationState(float deltaTime, const glm::vec3& worldPos
|
|||
_animVars.set("rightFootPoleVectorEnabled", false);
|
||||
}
|
||||
_lastEnableInverseKinematics = _enableInverseKinematics;
|
||||
|
||||
}
|
||||
_lastForward = forward;
|
||||
_lastPosition = worldPosition;
|
||||
|
|
Loading…
Reference in a new issue