diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-10-10 15:40:30 +0100 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-10-10 15:40:30 +0100 | 
| commit | 4ded45eb90667e63abc75e3ee63d957886412c84 (patch) | |
| tree | bca077998b8a9edc83440cfbed4fd77fff8af54a /indra | |
| parent | 44ba5224bf42b9279bc0fe90bb0926fae0d8898e (diff) | |
Sl-761 - removed the 90-degree fixup, so objects can be moved in a predictable and standard X-forward way in scripts.
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llcontrolavatar.cpp | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp index 1e8bd0066b..1a86718acd 100644 --- a/indra/newview/llcontrolavatar.cpp +++ b/indra/newview/llcontrolavatar.cpp @@ -67,10 +67,6 @@ void LLControlAvatar::matchVolumeTransform()      }  #endif - -    // Avatars seem to 90 degrees off from the rest of the world, this is a fixup. -    LLQuaternion fix_axes_rot(-F_PI_BY_TWO, LLVector3(0,0,1)); -      if (mRootVolp)      {          if (mRootVolp->isAttachment()) @@ -87,7 +83,7 @@ void LLControlAvatar::matchVolumeTransform()                  LLQuaternion obj_rot = mRootVolp->mDrawable->getRotation();                  obj_pos.rotVec(joint_rot);                  mRoot->setWorldPosition(obj_pos + joint_pos); -                mRoot->setWorldRotation(fix_axes_rot * obj_rot * joint_rot); +                mRoot->setWorldRotation(obj_rot * joint_rot);                  setRotation(mRoot->getRotation());              }              else @@ -99,7 +95,7 @@ void LLControlAvatar::matchVolumeTransform()          {              setPositionAgent(mRootVolp->getRenderPosition());              LLQuaternion obj_rot = mRootVolp->getRotation(); -            LLQuaternion result_rot = fix_axes_rot * obj_rot; +            LLQuaternion result_rot = obj_rot;              setRotation(result_rot);              mRoot->setWorldRotation(result_rot);              mRoot->setPosition(mRootVolp->getRenderPosition()); | 
