summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-04-03 16:21:05 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-04-03 16:21:05 +0300
commit72a14e46e790f279f1a5de04639af1e8c1d1e35e (patch)
tree669a47daa03995d1edeace77f2c146fd7dac7625
parent584a05797de03aa7673531bcbfa97b381c018949 (diff)
SL-10510 Revert
-rw-r--r--indra/newview/llinventorybridge.cpp8
1 files changed, 8 insertions, 0 deletions
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;