mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:35:04 +02:00
Merge pull request #3842 from AndrewMeadows/thermonuclear
fix for crash in SkeletonModel::updateStandingFoot()
This commit is contained in:
commit
5d2fd9df36
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