From e1cb88471f655d54d5da4c71333c99027345f8d2 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Wed, 4 Jun 2014 14:19:45 -0700 Subject: [PATCH] add a comment --- interface/src/renderer/Model.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/interface/src/renderer/Model.cpp b/interface/src/renderer/Model.cpp index bc383149d8..ca340808e5 100644 --- a/interface/src/renderer/Model.cpp +++ b/interface/src/renderer/Model.cpp @@ -2020,6 +2020,7 @@ void JointState::restoreRotation(float fraction, float priority) { void JointState::setRotationFromBindFrame(const glm::quat& rotation, float priority) { assert(_fbxJoint != NULL); if (priority >= _animationPriority) { + // rotation is from bind- to model-frame _rotationInParentFrame = _rotationInParentFrame * glm::inverse(_rotation) * rotation * glm::inverse(_fbxJoint->inverseBindRotation); _animationPriority = priority; }