mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-12 23:59:08 +02:00
call Model::updateRig (not Parent::updateRig)
This commit is contained in:
parent
ef0e32643d
commit
42d1498d20
1 changed files with 3 additions and 3 deletions
|
@ -147,6 +147,9 @@ void MySkeletonModel::updateRig(float deltaTime, glm::mat4 parentTransform) {
|
|||
auto orientation = myAvatar->getLocalOrientation();
|
||||
_rig->computeMotionAnimationState(deltaTime, position, velocity, orientation, ccState);
|
||||
|
||||
// evaluate AnimGraph animation and update jointStates.
|
||||
Model::updateRig(deltaTime, parentTransform);
|
||||
|
||||
Rig::EyeParameters eyeParams;
|
||||
eyeParams.eyeLookAt = lookAt;
|
||||
eyeParams.eyeSaccade = head->getSaccade();
|
||||
|
@ -156,8 +159,5 @@ void MySkeletonModel::updateRig(float deltaTime, glm::mat4 parentTransform) {
|
|||
eyeParams.rightEyeJointIndex = geometry.rightEyeJointIndex;
|
||||
|
||||
_rig->updateFromEyeParameters(eyeParams);
|
||||
|
||||
// evaluate AnimGraph animation and update jointStates.
|
||||
Parent::updateRig(deltaTime, parentTransform);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue