- fixed : don't start creating links to attachments until LLAppearanceMgr::setAttachmentInvLinkEnable has been called

--HG--
branch : Appearance-Misc
meow-7.2.2
Kitty Barnett 2015-06-25 02:00:10 +02:00
parent eed94f728f
commit d933e6ea73
2 changed files with 10 additions and 0 deletions

View File

@ -147,6 +147,9 @@ public:
// Attachment link management
void unregisterAttachment(const LLUUID& item_id);
void registerAttachment(const LLUUID& item_id);
// [SL:KB] - Patch: Appearance-SyncAttach | Checked: 2015-06-24 (Catznip-3.7)
bool getAttachmentInvLinkEnable() { return mAttachmentInvLinkEnabled; }
// [/SL:KB]
void setAttachmentInvLinkEnable(bool val);
// Add COF link to individual item.

View File

@ -219,6 +219,13 @@ void LLAttachmentsMgr::requestAttachments(attachments_vec_t& attachment_requests
void LLAttachmentsMgr::linkRecentlyArrivedAttachments()
{
// [SL:KB] - Patch: Appearance-SyncAttach | Checked: 2015-06-24 (Catznip-3.7)
if (!LLAppearanceMgr::instance().getAttachmentInvLinkEnable())
{
return;
}
// [/SL:KB]
if (mRecentlyArrivedAttachments.size())
{
// One or more attachments have arrived but have not yet been