aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/InventoryService/InventoryService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/InventoryService/InventoryService.cs')
-rw-r--r--OpenSim/Services/InventoryService/InventoryService.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Services/InventoryService/InventoryService.cs b/OpenSim/Services/InventoryService/InventoryService.cs
index dd435c9..fc54c12 100644
--- a/OpenSim/Services/InventoryService/InventoryService.cs
+++ b/OpenSim/Services/InventoryService/InventoryService.cs
@@ -273,6 +273,26 @@ namespace OpenSim.Services.InventoryService
273 return root; 273 return root;
274 } 274 }
275 275
276 public Dictionary<AssetType, InventoryFolderBase> GetSystemFolders(UUID userID)
277 {
278 InventoryFolderBase root = GetRootFolder(userID);
279 if (root != null)
280 {
281 InventoryCollection content = GetFolderContent(userID, root.ID);
282 if (content != null)
283 {
284 Dictionary<AssetType, InventoryFolderBase> folders = new Dictionary<AssetType, InventoryFolderBase>();
285 foreach (InventoryFolderBase folder in content.Folders)
286 {
287 if (folder.Type != (short)AssetType.Folder)
288 folders[(AssetType)folder.Type] = folder;
289 }
290 return folders;
291 }
292 }
293 return new Dictionary<AssetType, InventoryFolderBase>();
294 }
295
276 public List<InventoryItemBase> GetActiveGestures(UUID userId) 296 public List<InventoryItemBase> GetActiveGestures(UUID userId)
277 { 297 {
278 List<InventoryItemBase> activeGestures = new List<InventoryItemBase>(); 298 List<InventoryItemBase> activeGestures = new List<InventoryItemBase>();