diff options
author | Diva Canto | 2013-07-23 15:04:24 -0700 |
---|---|---|
committer | Diva Canto | 2013-07-26 15:54:54 -0700 |
commit | 0e772c65167a2d0dc5fbfce7e3135273a6125e6e (patch) | |
tree | 00fb4c13bb9e93d4fa8e429a7f3785c115c811dd | |
parent | In renaming the folders for hypergriding, don't rename the Current Outfit fol... (diff) | |
download | opensim-SC_OLD-0e772c65167a2d0dc5fbfce7e3135273a6125e6e.zip opensim-SC_OLD-0e772c65167a2d0dc5fbfce7e3135273a6125e6e.tar.gz opensim-SC_OLD-0e772c65167a2d0dc5fbfce7e3135273a6125e6e.tar.bz2 opensim-SC_OLD-0e772c65167a2d0dc5fbfce7e3135273a6125e6e.tar.xz |
Don't touch the Current Outfit folder also on coming back home
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs index 820ea66..7840571 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs | |||
@@ -346,7 +346,15 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
346 | InventoryFolderBase root = m_Scene.InventoryService.GetRootFolder(client.AgentId); | 346 | InventoryFolderBase root = m_Scene.InventoryService.GetRootFolder(client.AgentId); |
347 | InventoryCollection content = m_Scene.InventoryService.GetFolderContent(client.AgentId, root.ID); | 347 | InventoryCollection content = m_Scene.InventoryService.GetFolderContent(client.AgentId, root.ID); |
348 | 348 | ||
349 | inv.SendBulkUpdateInventory(content.Folders.ToArray(), content.Items.ToArray()); | 349 | List<InventoryFolderBase> keep = new List<InventoryFolderBase>(); |
350 | |||
351 | foreach (InventoryFolderBase f in content.Folders) | ||
352 | { | ||
353 | if (f.Name != "My Suitcase" && f.Name != "Current Outfit") | ||
354 | keep.Add(f); | ||
355 | } | ||
356 | |||
357 | inv.SendBulkUpdateInventory(keep.ToArray(), content.Items.ToArray()); | ||
350 | } | 358 | } |
351 | } | 359 | } |
352 | } | 360 | } |