From d99f006e3f00e8031c831653ca1679fba40921c9 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Thu, 22 Oct 2026 23:24:21 +0300 Subject: #6495 fix attachments showing in mouselook when FirstPersonAvatarVisible is disabled --- indra/newview/llagent.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'indra/newview/llagent.cpp') diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index c628e89a36..97bf6e98be 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -2505,6 +2505,11 @@ void LLAgent::endAnimationUpdateUI() LLFloaterCamera::onAvatarEditingAppearance(true); } + // Sync before updating attachment visibility + // Don't let this be called more than once if the camera + // mode hasn't changed. --JC + gAgentCamera.updateLastCamera(); + if (isAgentAvatarValid()) { gAgentAvatarp->updateAttachmentVisibility(gAgentCamera.getCameraMode()); @@ -2514,10 +2519,6 @@ void LLAgent::endAnimationUpdateUI() { gFloaterTools->dirty(); } - - // Don't let this be called more than once if the camera - // mode hasn't changed. --JC - gAgentCamera.updateLastCamera(); } boost::signals2::connection LLAgent::setMouselookModeInCallback( const camera_signal_t::slot_type& cb ) -- cgit v1.3