mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:17:43 +02:00
Initialize max offset to infinity
This commit is contained in:
parent
bf3a69a0b3
commit
8c232b5abb
2 changed files with 2 additions and 2 deletions
|
@ -2509,7 +2509,7 @@ bool MyAvatar::clearPinOnJoint(int index) {
|
||||||
|
|
||||||
auto hipsIndex = getJointIndex("Hips");
|
auto hipsIndex = getJointIndex("Hips");
|
||||||
if (index == hipsIndex) {
|
if (index == hipsIndex) {
|
||||||
_rig->setMaxHipsOffsetLength(1.0f);
|
_rig->setMaxHipsOffsetLength(FLT_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -87,7 +87,7 @@ protected:
|
||||||
|
|
||||||
// experimental data for moving hips during IK
|
// experimental data for moving hips during IK
|
||||||
glm::vec3 _hipsOffset { Vectors::ZERO };
|
glm::vec3 _hipsOffset { Vectors::ZERO };
|
||||||
float _maxHipsOffsetLength { 1.0f };
|
float _maxHipsOffsetLength{ FLT_MAX };
|
||||||
int _headIndex { -1 };
|
int _headIndex { -1 };
|
||||||
int _hipsIndex { -1 };
|
int _hipsIndex { -1 };
|
||||||
int _hipsParentIndex { -1 };
|
int _hipsParentIndex { -1 };
|
||||||
|
|
Loading…
Reference in a new issue