mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 00:30:59 +02:00
Need to transfer parent rotation to child.
This commit is contained in:
parent
6add0dfb42
commit
743034c986
1 changed files with 1 additions and 0 deletions
|
@ -1017,6 +1017,7 @@ void Model::applyRotationDelta(int jointIndex, const glm::quat& delta, bool cons
|
|||
if (propagate && targetRotation != state.combinedRotation &&
|
||||
joint.parentIndex != -1 && geometry.joints[joint.parentIndex].isFree) {
|
||||
applyRotationDelta(joint.parentIndex, targetRotation * glm::inverse(state.combinedRotation), true, true);
|
||||
state.combinedRotation = _jointStates.at(joint.parentIndex).combinedRotation * state.rotation;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue