Merge pull request #3842 from AndrewMeadows/thermonuclear

fix for crash in SkeletonModel::updateStandingFoot()
This commit is contained in:
Brad Hefta-Gaub 2014-11-20 14:40:21 -08:00
commit 5d2fd9df36

View file

@ -618,6 +618,9 @@ void SkeletonModel::updateVisibleJointStates() {
/// \return offset of hips after foot animation
void SkeletonModel::updateStandingFoot() {
if (_geometry == NULL) {
return;
}
glm::vec3 offset(0.0f);
int leftFootIndex = _geometry->getFBXGeometry().leftToeJointIndex;
int rightFootIndex = _geometry->getFBXGeometry().rightToeJointIndex;