fix for partial hand restore after hydra inactive

This commit is contained in:
Andrew Meadows 2014-06-04 10:19:27 -07:00
parent e48cfb84c1
commit aea517af46

View file

@ -2018,7 +2018,7 @@ glm::quat JointState::getJointRotation(bool fromBind) const {
void JointState::restoreRotation(float fraction, float priority) {
assert(_fbxJoint != NULL);
if (priority == _animationPriority) {
if (priority == _animationPriority || _animationPriority == 0.0f) {
_rotation = safeMix(_rotation, _fbxJoint->rotation, fraction);
_animationPriority = 0.0f;
}