make neck IK target type same as head

This commit is contained in:
Andrew Meadows 2015-09-29 17:39:17 -07:00
parent a052f5e125
commit b192d0a9cd
2 changed files with 5 additions and 4 deletions

View file

@ -26,13 +26,14 @@
{
"jointName": "Neck",
"positionVar": "neckPosition",
"rotationVar": "neckRotation"
"rotationVar": "neckRotation",
"typeVar": "headAndNeckType"
},
{
"jointName": "Head",
"positionVar": "headPosition",
"rotationVar": "headRotation",
"typeVar": "headType"
"typeVar": "headAndNeckType"
}
]
},

View file

@ -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");
}