mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
fix for crash in SkeletonModel::updateStandingFoot()
This commit is contained in:
parent
168487e0a7
commit
1b778603c8
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue