Skip to content

Commit 241631b

Browse files
committed
LLViewerObject::getAttachmentItemID() sometimes returns the NULL UUID for the avatar's own attachments
1 parent 376cd0f commit 241631b

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
@@ -164,7 +164,6 @@ void LLViewerJointAttachment::setupDrawable(LLViewerObject *object)
164164
//-----------------------------------------------------------------------------
165165
bool LLViewerJointAttachment::addObject(LLViewerObject* object)
166166
{
167-
object->extractAttachmentItemID();
168167

169168
// Same object reattached
170169
if (isObjectAttached(object))
@@ -175,6 +174,8 @@ bool LLViewerJointAttachment::addObject(LLViewerObject* object)
175174
// re-connect object to the joint correctly
176175
}
177176

177+
object->extractAttachmentItemID();
178+
178179
// Two instances of the same inventory item attached --
179180
// Request detach, and kill the object in the meantime.
180181
if (getAttachedObject(object->getAttachmentItemID()))

0 commit comments

Comments
 (0)