aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications/Local')
-rw-r--r--OpenSim/Region/Communications/Local/LocalInventoryService.cs54
1 files changed, 27 insertions, 27 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs
index 4ff4e96..6fc2c6a 100644
--- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs
+++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs
@@ -56,39 +56,39 @@ namespace OpenSim.Region.Communications.Local
56 if (skeletonFolders != null) 56 if (skeletonFolders != null)
57 { 57 {
58 58
59 InventoryFolderImpl rootFolder = null; 59 InventoryFolderImpl rootFolder = null;
60 60
61 // Need to retrieve the root folder on the first pass 61 // Need to retrieve the root folder on the first pass
62 foreach (InventoryFolderBase folder in skeletonFolders) 62 foreach (InventoryFolderBase folder in skeletonFolders)
63 { 63 {
64 if (folder.ParentID == UUID.Zero) 64 if (folder.ParentID == UUID.Zero)
65 { 65 {
66 rootFolder = new InventoryFolderImpl(folder); 66 rootFolder = new InventoryFolderImpl(folder);
67 folders.Add(rootFolder); 67 folders.Add(rootFolder);
68 items.AddRange(RequestFolderItems(rootFolder.ID)); 68 items.AddRange(RequestFolderItems(rootFolder.ID));
69 break; // Only 1 root folder per user 69 break; // Only 1 root folder per user
70 } 70 }
71 } 71 }
72 72
73 if (rootFolder != null) 73 if (rootFolder != null)
74 { 74 {
75 foreach (InventoryFolderBase folder in skeletonFolders) 75 foreach (InventoryFolderBase folder in skeletonFolders)
76 { 76 {
77 if (folder.ID != rootFolder.ID) 77 if (folder.ID != rootFolder.ID)
78 { 78 {
79 folders.Add(new InventoryFolderImpl(folder)); 79 folders.Add(new InventoryFolderImpl(folder));
80 items.AddRange(RequestFolderItems(folder.ID)); 80 items.AddRange(RequestFolderItems(folder.ID));
81 } 81 }
82 } 82 }
83 } 83 }
84 84
85 m_log.InfoFormat( 85 m_log.InfoFormat(
86 "[LOCAL INVENTORY SERVICE]: Received inventory response for user {0} containing {1} folders and {2} items", 86 "[LOCAL INVENTORY SERVICE]: Received inventory response for user {0} containing {1} folders and {2} items",
87 userID, folders.Count, items.Count); 87 userID, folders.Count, items.Count);
88 } 88 }
89 else 89 else
90 { 90 {
91 m_log.WarnFormat( "[LOCAL INVENTORY SERVICE]: User {0} inventory not available", userID); 91 m_log.WarnFormat( "[LOCAL INVENTORY SERVICE]: User {0} inventory not available", userID);
92 } 92 }
93 93
94 callback(folders, items); 94 callback(folders, items);