mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi
This commit is contained in:
commit
f6395435cf
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 FBXGeometry& geometry = _geometry->getFBXGeometry();
|
||||||
const QVector<int>& freeLineage = geometry.joints.at(jointIndex).freeLineage;
|
const QVector<int>& freeLineage = geometry.joints.at(jointIndex).freeLineage;
|
||||||
|
|
||||||
foreach (int index, freeLineage) {
|
foreach (int index, freeLineage) {
|
||||||
JointState& state = _jointStates[index];
|
JointState& state = _jointStates[index];
|
||||||
state.restoreRotation(fraction, priority);
|
state.restoreRotation(fraction, priority);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue