Initialize max offset to infinity

This commit is contained in:
Atlante45 2017-02-17 15:46:10 -08:00
parent bf3a69a0b3
commit 8c232b5abb
2 changed files with 2 additions and 2 deletions

View file

@ -2509,7 +2509,7 @@ bool MyAvatar::clearPinOnJoint(int index) {
auto hipsIndex = getJointIndex("Hips");
if (index == hipsIndex) {
_rig->setMaxHipsOffsetLength(1.0f);
_rig->setMaxHipsOffsetLength(FLT_MAX);
}
return true;

View file

@ -87,7 +87,7 @@ protected:
// experimental data for moving hips during IK
glm::vec3 _hipsOffset { Vectors::ZERO };
float _maxHipsOffsetLength { 1.0f };
float _maxHipsOffsetLength{ FLT_MAX };
int _headIndex { -1 };
int _hipsIndex { -1 };
int _hipsParentIndex { -1 };