mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 06:53:59 +02:00
Merge pull request #2979 from AndrewMeadows/bug-fix
fix for partial hand restore after hydra goes inactive
This commit is contained in:
commit
f5c892580e
1 changed files with 2 additions and 2 deletions
|
@ -1344,7 +1344,7 @@ bool Model::restoreJointPosition(int jointIndex, float fraction, float priority)
|
|||
}
|
||||
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
||||
const QVector<int>& freeLineage = geometry.joints.at(jointIndex).freeLineage;
|
||||
|
||||
|
||||
foreach (int index, freeLineage) {
|
||||
JointState& state = _jointStates[index];
|
||||
state.restoreRotation(fraction, priority);
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue