Skip to content

#6532 fix cam FOCUS_LAG being unnecessarily clamped in some situations - #6533

Merged
akleshchev merged 2 commits into
secondlife:release/26.5from
trish-sl:fix-cameraregression
Oct 28, 2026
Merged

akleshchev merged 2 commits into
secondlife:release/26.5from
trish-sl:fix-cameraregression

Conversation

@trish-sl

@trish-sl trish-sl commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #6532 , a regression coming to the zoom fix in in #6249. The max distance should only be clamped by mMaxCameraDistantFromSubject rather than the requested max distance, otherwise camera focus lag gets pushed closer than intended.

Verified that both the original issue and the #6532 regressions are covered by this fix

@akleshchev akleshchev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm that it works, thank you.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The camera can remain stuck at the 50 m limit despite zooming in, allowing further scrolling to enter mouselook without moving it closer and reintroducing the stuck-zoom behavior from #6249.

1 open issue
What changed in this PR

Adjusts follow-camera distance enforcement to address #6532, allowing scripted camera lag beyond the requested follow distance while retaining the viewer’s maximum distance limit.

Changes:

  • Uses the viewer’s maximum distance for both the clamp condition and camera-position scaling.
  • Updates comments to explain why movement-induced position lag may exceed the requested distance.
File Description
indra/​newview/​llfollowcam.cpp Adjusts the follow-camera distance clamp and documents the intended lag behavior.

Review effort: Balanced

Comment thread indra/newview/llfollowcam.cpp Outdated
@akleshchev

Copy link
Copy Markdown
Contributor

Please, rebase to release/26.5

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the follow-camera distance-limit change.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@akleshchev
akleshchev self-requested a review October 28, 2026 15:13
@akleshchev
akleshchev force-pushed the fix-cameraregression branch from 2f663c6 to 085aad0 Compare October 28, 2026 15:14
@akleshchev
akleshchev enabled auto-merge (squash) October 28, 2026 15:15
@akleshchev
akleshchev merged commit 746d768 into secondlife:release/26.5 Oct 28, 2026
11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The camera does not properly follow the Kart 1.0 at a distance

3 participants