summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-07-08 15:01:30 -0400
committerLoren Shih <seraph@lindenlab.com>2010-07-08 15:01:30 -0400
commit6e9bf1c5dc62dcad90ab217647791fab56633f28 (patch)
treede45eb325896866028e6299e8774b0b393b00f65 /indra
parentaef4f6ccabe0b2f72296f1a4ae5634080396690a (diff)
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.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoavatar.cpp1
1 files changed, 1 insertions, 0 deletions
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;