mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 21:17:36 +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];
|
JointState& state = _jointStates[index];
|
||||||
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
||||||
const FBXJoint& joint = geometry.joints.at(index);
|
const FBXJoint& joint = geometry.joints.at(index);
|
||||||
if (joint.parentIndex == -1) {
|
if (joint.parentIndex != -1) {
|
||||||
const JointState& parentState = _jointStates.at(joint.parentIndex);
|
const JointState& parentState = _jointStates.at(joint.parentIndex);
|
||||||
if (index == geometry.leanJointIndex) {
|
if (index == geometry.leanJointIndex) {
|
||||||
maybeUpdateLeanRotation(parentState, joint, state);
|
maybeUpdateLeanRotation(parentState, joint, state);
|
||||||
|
|
Loading…
Reference in a new issue