This commit is contained in:
Andrzej Kapolka 2014-06-04 11:51:11 -07:00
commit f6395435cf

View file

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