mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 11:53:28 +02:00
make neck IK target type same as head
This commit is contained in:
parent
a052f5e125
commit
b192d0a9cd
2 changed files with 5 additions and 4 deletions
|
@ -26,13 +26,14 @@
|
|||
{
|
||||
"jointName": "Neck",
|
||||
"positionVar": "neckPosition",
|
||||
"rotationVar": "neckRotation"
|
||||
"rotationVar": "neckRotation",
|
||||
"typeVar": "headAndNeckType"
|
||||
},
|
||||
{
|
||||
"jointName": "Head",
|
||||
"positionVar": "headPosition",
|
||||
"rotationVar": "headRotation",
|
||||
"typeVar": "headType"
|
||||
"typeVar": "headAndNeckType"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -1079,7 +1079,7 @@ void Rig::updateNeckJoint(int index, const HeadParameters& params) {
|
|||
|
||||
_animVars.set("headPosition", headPos);
|
||||
_animVars.set("headRotation", headRot);
|
||||
_animVars.set("headType", QString("RotationAndPosition"));
|
||||
_animVars.set("headAndNeckType", QString("RotationAndPosition"));
|
||||
_animVars.set("neckPosition", neckPos);
|
||||
_animVars.set("neckRotation", neckRot);
|
||||
|
||||
|
@ -1092,7 +1092,7 @@ void Rig::updateNeckJoint(int index, const HeadParameters& params) {
|
|||
|
||||
_animVars.unset("headPosition");
|
||||
_animVars.set("headRotation", realLocalHeadOrientation);
|
||||
_animVars.set("headType", QString("RotationOnly"));
|
||||
_animVars.set("headAndNeckType", QString("RotationOnly"));
|
||||
_animVars.unset("neckPosition");
|
||||
_animVars.unset("neckRotation");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue