Skip to content

Commit c1f0f57

Browse files
committed
LLViewerObject::getAttachmentItemID() sometimes returns the NULL UUID for the avatar's own attachments
1 parent ce1fe48 commit c1f0f57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

indra/newview/llviewerjointattachment.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ void LLViewerJointAttachment::setupDrawable(LLViewerObject *object)
168168
//-----------------------------------------------------------------------------
169169
bool LLViewerJointAttachment::addObject(LLViewerObject* object)
170170
{
171-
object->extractAttachmentItemID();
172171

173172
// Same object reattached
174173
if (isObjectAttached(object))
@@ -179,6 +178,8 @@ bool LLViewerJointAttachment::addObject(LLViewerObject* object)
179178
// re-connect object to the joint correctly
180179
}
181180

181+
object->extractAttachmentItemID();
182+
182183
// Two instances of the same inventory item attached --
183184
// Request detach, and kill the object in the meantime.
184185
if (getAttachedObject(object->getAttachmentItemID()))

0 commit comments

Comments
 (0)