mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
add a comment
This commit is contained in:
parent
f19b562e88
commit
e1cb88471f
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue