diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-06-02 18:45:03 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-06-02 18:45:03 +0300 | 
| commit | 47e474244f42f0e28c8a041d5d34d6656c27db85 (patch) | |
| tree | 38205a42435e2312fd2ff04fa57a5d5a4a4c551b | |
| parent | c471392ef1c0633423ea66158c21ba4d81f2473b (diff) | |
SL-13362 The worn wearables shouldn't be shareable
| -rw-r--r-- | indra/newview/llgiveinventory.cpp | 13 | 
1 files changed, 2 insertions, 11 deletions
diff --git a/indra/newview/llgiveinventory.cpp b/indra/newview/llgiveinventory.cpp index 3ab8fed2c6..127055459d 100644 --- a/indra/newview/llgiveinventory.cpp +++ b/indra/newview/llgiveinventory.cpp @@ -129,23 +129,14 @@ bool LLGiveInventory::isInventoryGiveAcceptable(const LLInventoryItem* item)  	switch(item->getType())  	{  	case LLAssetType::AT_OBJECT: -		if (get_is_item_worn(item->getUUID())) -		{ -			acceptable = false; -		} -		break;  	case LLAssetType::AT_BODYPART:  	case LLAssetType::AT_CLOTHING:  		{ -			BOOL copyable = false; -			if (item->getPermissions().allowCopyBy(gAgentID)) copyable = true; - -			if (!copyable && get_is_item_worn(item->getUUID())) +			if (get_is_item_worn(item->getUUID()))  			{ -				// worn no-copy items can't be transfered, -				// but it is valid to transfer a copy of a worn item  				acceptable = false;  			} +			break;  		}  		break;  	default:  | 
