Commits

Anonymous committed 6e0d70e

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.

Comments (0)

Files changed (1)

indra/newview/llvoavatar.cpp

 	if (!attachment)
 	{
 		llwarns << "Object attachment point invalid: " << attachmentID << llendl;
+		attachment = get_if_there(mAttachmentPoints, 1, (LLViewerJointAttachment*)NULL); // Arbitrary using 1 (chest)
 	}
 
 	return attachment;