From b17b0615c6989cfa956031a31a3ddf46c5c4fc1d Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Thu, 25 Jul 2013 06:40:44 -0400 Subject: [PATCH] Another stab at fixing bridge autodetach --- indra/newview/llvoavatar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index f87fdba79..0d6b21c58 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -6211,7 +6211,7 @@ LLViewerJointAttachment* LLVOAvatar::getTargetAttachmentPoint(LLViewerObject* vi if (isSelf() && attachmentID == 127 && gSavedSettings.getBOOL("SGDetachBridge")) { llinfos << "Bridge detected! detaching" << llendl; - LLAppearanceMgr::getInstance()->removeItemFromAvatar(viewer_object->getAttachmentItemID()); + LLVOAvatarSelf::detachAttachmentIntoInventory(viewer_object->getAttachmentItemID()); return 0; } // attachment = get_if_there(mAttachmentPoints, 1, (LLViewerJointAttachment*)NULL); // Arbitrary using 1 (chest)