From e1ea3f05aa9de2ccb11b86365b5e4063e8ab05b3 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 23 Mar 2009 02:02:12 +0000 Subject: Finish folder gives. With this commit, single item and folder gives now work across regions and also to offline avatars. Scripted gives are not yet tested and may not work. --- .../Avatar/Inventory/Transfer/InventoryTransferModule.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs index 19b9b22..2939282 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs @@ -451,6 +451,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer user.ControllingClient.SendBulkUpdateInventory(folderInfo); + // This unelegant, slow kludge is to reload the folders and + // items. Since a folder give can transfer subfolders and + // items, this is the easiest way to pull that stuff in + // + userInfo.DropInventory(); + userInfo.FetchInventory(); + // Deliver message // user.ControllingClient.SendInstantMessage( -- cgit v1.1