undo local modif to SKeletonModel.cpp

This commit is contained in:
Sam Gateau 2015-06-19 11:00:27 +02:00
parent 31633eca10
commit 9adfdb06fe

View file

@ -41,7 +41,6 @@ SkeletonModel::SkeletonModel(Avatar* owningAvatar, QObject* parent) :
_headClipDistance(DEFAULT_NEAR_CLIP)
{
assert(_owningAvatar);
_enableShapes = true;
}
SkeletonModel::~SkeletonModel() {
@ -255,13 +254,9 @@ void SkeletonModel::applyPalmData(int jointIndex, PalmData& palm) {
}
void SkeletonModel::updateJointState(int index) {
if (index > _jointStates.size()) {
return; // bail
}
JointState& state = _jointStates[index];
const FBXJoint& joint = state.getFBXJoint();
// if (joint.parentIndex != -1 && joint.parentIndex <= _jointStates.size()) {
if (joint.parentIndex > -1 && joint.parentIndex <= _jointStates.size()) {
if (joint.parentIndex != -1) {
const JointState& parentState = _jointStates.at(joint.parentIndex);
const FBXGeometry& geometry = _geometry->getFBXGeometry();
if (index == geometry.leanJointIndex) {