diff options
author | Justin Clarke Casey | 2008-04-07 21:03:03 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-04-07 21:03:03 +0000 |
commit | 033f0138c85b1912491430490995df21387d4baa (patch) | |
tree | 26f22afbe2681c06cbeee5b8efcfbacfc5b7715b /OpenSim/Region | |
parent | break out the 5 classes that were (diff) | |
download | opensim-SC_OLD-033f0138c85b1912491430490995df21387d4baa.zip opensim-SC_OLD-033f0138c85b1912491430490995df21387d4baa.tar.gz opensim-SC_OLD-033f0138c85b1912491430490995df21387d4baa.tar.bz2 opensim-SC_OLD-033f0138c85b1912491430490995df21387d4baa.tar.xz |
* Preserve original creator's name when an object is given
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index f6f1367..c61afda 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -291,7 +291,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
291 | /// Give an inventory item from one avatar to another | 291 | /// Give an inventory item from one avatar to another |
292 | /// </summary> | 292 | /// </summary> |
293 | /// <param name="recipientClient"></param> | 293 | /// <param name="recipientClient"></param> |
294 | /// <param name="sender"></param> | 294 | /// <param name="senderId">ID of the sender of the item</param> |
295 | /// <param name="itemId"></param> | 295 | /// <param name="itemId"></param> |
296 | public void GiveInventoryItem(IClientAPI recipientClient, LLUUID senderId, LLUUID itemId) | 296 | public void GiveInventoryItem(IClientAPI recipientClient, LLUUID senderId, LLUUID itemId) |
297 | { | 297 | { |
@@ -320,7 +320,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
320 | // Insert a copy of the item into the recipient | 320 | // Insert a copy of the item into the recipient |
321 | InventoryItemBase itemCopy = new InventoryItemBase(); | 321 | InventoryItemBase itemCopy = new InventoryItemBase(); |
322 | itemCopy.avatarID = recipientClient.AgentId; | 322 | itemCopy.avatarID = recipientClient.AgentId; |
323 | itemCopy.creatorsID = recipientClient.AgentId; | 323 | itemCopy.creatorsID = senderId; |
324 | itemCopy.inventoryID = LLUUID.Random(); | 324 | itemCopy.inventoryID = LLUUID.Random(); |
325 | itemCopy.assetID = item.assetID; | 325 | itemCopy.assetID = item.assetID; |
326 | itemCopy.inventoryDescription = item.inventoryDescription; | 326 | itemCopy.inventoryDescription = item.inventoryDescription; |