Commit 31c4c0d8 authored by Kitty Barnett's avatar Kitty Barnett
Browse files

[FIXED] CATZ-515: 'Show in Inventory' doesn't work on linked objects

--HG--
branch : Appearance-Wearing
parent 2ec0ce57
......@@ -6964,7 +6964,7 @@ void handle_attachment_find_original()
LLObjectSelectionHandle hSelection = LLSelectMgr::getInstance()->getSelection();
if ( (SELECT_TYPE_ATTACHMENT == hSelection->getSelectType()) || (SELECT_TYPE_HUD == hSelection->getSelectType()) )
{
const LLViewerObject* pAttachObj = hSelection->getPrimaryObject();
const LLViewerObject* pAttachObj = hSelection->getFirstRootObject();
if ( (pAttachObj) && (!pAttachObj->isTempAttachment()) )
{
const LLUUID& idAttachItem = pAttachObj->getAttachmentItemID();
......@@ -6979,7 +6979,7 @@ bool enable_attachment_find_original()
if ( (SELECT_TYPE_ATTACHMENT != hSelection->getSelectType()) && (SELECT_TYPE_HUD != hSelection->getSelectType()) )
return false;
const LLViewerObject* pAttachObj = hSelection->getPrimaryObject();
const LLViewerObject* pAttachObj = hSelection->getFirstRootObject();
return (pAttachObj) && (!pAttachObj->isTempAttachment());
}
// [/SL:KB]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment