fix for crash in SkeletonModel::updateStandingFoot()

This commit is contained in:
Andrew Meadows 2014-11-20 14:21:08 -08:00
parent 168487e0a7
commit 1b778603c8

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;