diff options
author | secretfoxtail <remmy@megapahit.net> | 2025-05-24 10:36:18 -0600 |
---|---|---|
committer | secretfoxtail <remmy@megapahit.net> | 2025-05-24 10:36:18 -0600 |
commit | b1126521cae30e6a2494ed71c75ba1f95b807286 (patch) | |
tree | 2d5bc2e5bfe07bdfcfdea39b5d878bce83b2211d | |
parent | 70a4ca3a0b971b1f3e838df30b0a2b46955d980a (diff) |
Fix mouselook attachment offset
Disable shortening avatar skeleton in mouselook like other TPVs
-rw-r--r-- | indra/newview/llagentcamera.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index 3b147707cf..4856eb1199 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -1504,6 +1504,7 @@ void LLAgentCamera::updateCamera() LLVector3 chest_scale = chest_joint->getScale(); // shorten avatar skeleton to avoid foot interpenetration +#if 0 // This offsets mouselook attachments, is disabled in other TPVs if (!gAgentAvatarp->mInAir) { LLVector3 chest_offset = LLVector3(0.f, 0.f, chest_joint->getPosition().mV[VZ]) * torso_joint->getWorldRotation(); @@ -1517,6 +1518,7 @@ void LLAgentCamera::updateCamera() chest_joint->setScale(LLVector3(1.f, 1.f, scale_factor)); diff.mV[VZ] = 0.f; } +#endif // SL-315 gAgentAvatarp->mPelvisp->setPosition(gAgentAvatarp->mPelvisp->getPosition() + diff); |