diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-04-18 17:31:35 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-04-18 17:31:35 -0400 |
commit | e3ceb10c48b7ce339fab8c3c7a726bd4bf2e30e8 (patch) | |
tree | a8ab2f956656d87de3a74ebd811d6634cfb8fe7d /indra/newview | |
parent | 17af76fae18e305d0a42192a326648f00c84d1f3 (diff) |
SH-4128 WIP - avoid needless called to updateLinkedObjectsFromPurge()
Diffstat (limited to 'indra/newview')
-rwxr-xr-x[-rw-r--r--] | indra/newview/llinventorymodel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index 8d7478233a..3d2fcdc494 100644..100755 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -1171,8 +1171,14 @@ void LLInventoryModel::deleteObject(const LLUUID& id) mParentChildCategoryTree.erase(id); } addChangedMask(LLInventoryObserver::REMOVE, id); + bool is_link_type = obj->getIsLinkType(); obj = NULL; // delete obj - updateLinkedObjectsFromPurge(id); + // Can't have links to links, so there's no need for this update + // if the item removed is a link. + if (!is_link_type) + { + updateLinkedObjectsFromPurge(id); + } gInventory.notifyObservers(); } |