mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
apply fake eye saccades if eye joints aren't overridden (rather than if HasProceduralEyeFaceMovement is true)
This commit is contained in:
parent
1979e1dbc7
commit
f331b76c51
1 changed files with 1 additions and 1 deletions
|
@ -1973,7 +1973,7 @@ void Rig::updateEyeJoint(int index, const glm::vec3& modelTranslation, const glm
|
|||
|
||||
// TODO: does not properly handle avatar scale.
|
||||
|
||||
if (isIndexValid(index) && !_internalPoseSet._overrideFlags[i]) {
|
||||
if (isIndexValid(index) && !_internalPoseSet._overrideFlags[index]) {
|
||||
const glm::mat4 rigToWorld = createMatFromQuatAndPos(modelRotation, modelTranslation);
|
||||
const glm::mat4 worldToRig = glm::inverse(rigToWorld);
|
||||
const glm::vec3 lookAtVector = glm::normalize(transformPoint(worldToRig, lookAtSpot) - _internalPoseSet._absolutePoses[index].trans());
|
||||
|
|
Loading…
Reference in a new issue