FIRE-34884: Fix position adjustments not working

when mirror, sympathetic or delta
master
Angeldark Raymaker 2024-11-26 22:00:09 +00:00
parent 8c13542331
commit 26bfcd2e58
1 changed files with 2 additions and 6 deletions

View File

@ -377,18 +377,14 @@ void FSPoserAnimator::setJointPosition(LLVOAvatar* avatar, const FSPoserJoint* j
if (!jointPose)
return;
if (style == NONE)
FSJointPose* oppositeJointPose = posingMotion->getJointPoseByJointName(joint->mirrorJointName());
if (style == NONE || !oppositeJointPose)
{
jointPose->setPositionDelta(position);
return;
}
LLVector3 positionDelta = jointPose->getPositionDelta() - position;
FSJointPose* oppositeJointPose = posingMotion->getJointPoseByJointName(joint->mirrorJointName());
if (!oppositeJointPose)
return;
LLVector3 oppositeJointPosition = oppositeJointPose->getPositionDelta();
switch (style)
{