From 72a14e46e790f279f1a5de04639af1e8c1d1e35e Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Wed, 3 Apr 2019 16:21:05 +0300 Subject: SL-10510 Revert --- indra/newview/llinventorybridge.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'indra') diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 5b12b39fca..e13f8343a0 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -2101,6 +2101,14 @@ BOOL LLItemBridge::isItemCopyable() const LLViewerInventoryItem* item = getItem(); if (item) { + // Can't copy worn objects. + // Worn objects are tied to their inworld conterparts + // Copy of modified worn object will return object with obsolete asset and inventory + if(get_is_item_worn(mUUID)) + { + return FALSE; + } + return item->getPermissions().allowCopyBy(gAgent.getID()) || gSavedSettings.getBOOL("InventoryLinking"); } return FALSE; -- cgit v1.2.3