From 16f22bedddfca96bc7f03a3a6056cb22d4305662 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 28 Oct 2020 14:54:25 +0100 Subject: [PATCH] FIRE-6070: Fix using "Wear" button to add X number of objects to avatar will attach X-1 objects --- indra/newview/llattachmentsmgr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/llattachmentsmgr.cpp b/indra/newview/llattachmentsmgr.cpp index d929467065..e19c870fbf 100644 --- a/indra/newview/llattachmentsmgr.cpp +++ b/indra/newview/llattachmentsmgr.cpp @@ -195,7 +195,10 @@ void LLAttachmentsMgr::requestAttachments(attachments_vec_t& attachment_requests // For unknown reasons, requesting many attachments at once causes // frequent server-side failures. Here we're limiting the number // of attachments requested per idle loop. - const S32 max_objects_per_request = 5; + // FIRE-6070: Batching attachment requests is most-likely causing issues + // when replacing already worn attachments + //const S32 max_objects_per_request = 5; + const S32 max_objects_per_request = 1; S32 obj_count = llmin((S32)attachment_requests.size(),max_objects_per_request); if (obj_count == 0) {