From 6e9bf1c5dc62dcad90ab217647791fab56633f28 Mon Sep 17 00:00:00 2001 From: Loren Shih Date: Thu, 8 Jul 2010 15:01:30 -0400 Subject: EXT-8264 FIXED Object attached to an invalid attachment index shows avatar menu on right-click, as if it IS attached Objects attached to bad attachment point end up attached to chest by default so they're not hanging in space. --- indra/newview/llvoavatar.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llvoavatar.cpp') diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 1954a573d4..844ad6ca2d 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -5723,6 +5723,7 @@ LLViewerJointAttachment* LLVOAvatar::getTargetAttachmentPoint(LLViewerObject* vi if (!attachment) { llwarns << "Object attachment point invalid: " << attachmentID << llendl; + attachment = get_if_there(mAttachmentPoints, 1, (LLViewerJointAttachment*)NULL); // Arbitrary using 1 (chest) } return attachment; -- cgit v1.2.3