mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 19:43:39 +02:00
fix bug -- negate logic around invalid joint index
This commit is contained in:
parent
ae3b792a35
commit
9f72d6ca3f
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ void SkeletonModel::updateJointState(int index) {
|
|||
JointState& state = _jointStates[index];
|
||||
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
||||
const FBXJoint& joint = geometry.joints.at(index);
|
||||
if (joint.parentIndex == -1) {
|
||||
if (joint.parentIndex != -1) {
|
||||
const JointState& parentState = _jointStates.at(joint.parentIndex);
|
||||
if (index == geometry.leanJointIndex) {
|
||||
maybeUpdateLeanRotation(parentState, joint, state);
|
||||
|
|
Loading…
Reference in a new issue