diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-10-28 19:55:40 +0300 |
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-10-28 19:55:40 +0300 |
| commit | 27f7edeedbbf65086e4a6ba28724f8a80c48bcd0 (patch) | |
| tree | 935682ef21a7e4d10e4959cfd621190ee2deb198 /indra/newview/llinventoryfunctions.cpp | |
| parent | 449fa46b157c9cd30fd17f63a12a295da18c7b4f (diff) | |
SL-16534 The link item is not updating after rezzing the linked object in-world
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
| -rw-r--r-- | indra/newview/llinventoryfunctions.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 27edc8148e..dab1e5c38d 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -529,7 +529,11 @@ BOOL get_is_item_worn(const LLUUID& id) const LLViewerInventoryItem* item = gInventory.getItem(id); if (!item) return FALSE; - + + if (item->getIsLinkType() && !gInventory.getItem(item->getLinkedUUID())) + { + return FALSE; + } // Consider the item as worn if it has links in COF. if (LLAppearanceMgr::instance().isLinkedInCOF(id)) { |
