summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-12-12 18:29:55 +0200
committerGitHub <noreply@github.com>2023-12-12 18:29:55 +0200
commit5abcec163c46c2bcb06ba9703c717f0e037f087e (patch)
treee94ce2b483cda9014968e03a17e4a929955372c1 /indra/newview
parentcde3816ed07489415257e3bda3f64069ca580b0d (diff)
SL-20710 ignore pelvis fixup when sitting in mouselook
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llagentcamera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index 29642d3f45..e54d3a2042 100644
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -1773,7 +1773,7 @@ LLVector3d LLAgentCamera::calcCameraPositionTargetGlobal(BOOL *hit_limit)
head_offset.clearVec();
F32 fixup;
- if (gAgentAvatarp->hasPelvisFixup(fixup))
+ if (gAgentAvatarp->hasPelvisFixup(fixup) && !gAgentAvatarp->isSitting())
{
head_offset[VZ] -= fixup;
}