summaryrefslogtreecommitdiff
path: root/indra/newview/llagentcamera.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-10-22 11:41:46 +0800
committerErik Kundiman <erik@megapahit.org>2026-10-22 11:41:46 +0800
commit80e7d54b419b591a0dbb2a86a413e29f87c7e17e (patch)
treeebf7fbcd3ef2ab3c5d2cd189a31dc6c5b8082dd6 /indra/newview/llagentcamera.cpp
parentdc3524d24ae63c1024c094b67fb13f41f49d5637 (diff)
parentd567465ea17a2523b200fbf6213adaacfccd23da (diff)
Merge tag 'Second_Life_Release#d567465e-26.5' into 26.5
Diffstat (limited to 'indra/newview/llagentcamera.cpp')
-rw-r--r--indra/newview/llagentcamera.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index 52db5c4415..cfaaadd7b3 100644
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -1506,11 +1506,13 @@ void LLAgentCamera::updateCamera()
{
// Keep tracked-object translation exact and smooth only changes
// to the camera offset, as is done in avatar-relative mode.
+ // Skip during the focus-change pan indicated by mCameraAnimating, see #6467.
LLVector3d camera_pos_focus = camera_pos_global - mFocusGlobal;
LLVector3d last_camera_pos_focus =
mCameraSmoothingLastPositionGlobal - mCameraSmoothingLastFocusGlobal;
LLVector3d delta = camera_pos_focus - last_camera_pos_focus;
- if (mCameraSmoothingLastFocusValid &&
+ if (!mCameraAnimating &&
+ mCameraSmoothingLastFocusValid &&
delta.magVec() < MAX_CAMERA_SMOOTH_DISTANCE)
{
camera_pos_focus = lerp(last_camera_pos_focus, camera_pos_focus, smoothing);