added debug print to fbx reader to see if the fst is being read correctly

This commit is contained in:
Angus Antley 2018-11-09 07:22:36 -08:00
parent dce040978c
commit fd365b5509
2 changed files with 5 additions and 1 deletions

View file

@ -27,7 +27,7 @@ AnimSkeleton::AnimSkeleton(const HFMModel& hfmModel) {
}
glm::quat offset1(0.5f, 0.5f, 0.5f, -0.5f);
glm::quat offset2(0.7071f, 0.0f, 0.7071f, 0.0f);
glm::quat offset2(0.7071f, 0.0f, -0.7071f, 0.0f);
buildSkeletonFromJoints(joints, hfmModel.jointRotationOffsets);
// add offsets for spine2 and the neck

View file

@ -632,10 +632,14 @@ QMap<QString, glm::quat> getJointRotationOffsets(const QVariantHash& mapping) {
if (!isNaN(quatX) && !isNaN(quatY) && !isNaN(quatZ) && !isNaN(quatW)) {
glm::quat rotationOffset = glm::quat(quatW, quatX, quatY, quatZ);
jointRotationOffsets.insert(jointName, rotationOffset);
}
}
qCDebug(modelformat) << "found an offset in fst";
}
qCDebug(modelformat) << "found an offset in fst 2";
}
qCDebug(modelformat) << "found an offset in fst 3";
return jointRotationOffsets;
}