diff options
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/InventoryService/InventoryService.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Services/InventoryService/InventoryService.cs b/OpenSim/Services/InventoryService/InventoryService.cs index fbcd663..86bca79 100644 --- a/OpenSim/Services/InventoryService/InventoryService.cs +++ b/OpenSim/Services/InventoryService/InventoryService.cs | |||
@@ -268,15 +268,22 @@ namespace OpenSim.Services.InventoryService | |||
268 | 268 | ||
269 | public InventoryFolderBase GetFolderForType(UUID userID, AssetType type) | 269 | public InventoryFolderBase GetFolderForType(UUID userID, AssetType type) |
270 | { | 270 | { |
271 | // m_log.DebugFormat("[INVENTORY SERVICE]: Looking for folder type {0} for user {1}", type, userID); | ||
272 | |||
271 | InventoryFolderBase root = m_Database.getUserRootFolder(userID); | 273 | InventoryFolderBase root = m_Database.getUserRootFolder(userID); |
272 | if (root != null) | 274 | if (root != null) |
273 | { | 275 | { |
274 | List<InventoryFolderBase> folders = RequestSubFolders(root.ID); | 276 | List<InventoryFolderBase> folders = RequestSubFolders(root.ID); |
275 | 277 | ||
276 | foreach (InventoryFolderBase folder in folders) | 278 | foreach (InventoryFolderBase folder in folders) |
277 | { | 279 | { |
278 | if (folder.Type == (short)type) | 280 | if (folder.Type == (short)type) |
281 | { | ||
282 | // m_log.DebugFormat( | ||
283 | // "[INVENTORY SERVICE]: Found folder {0} type {1}", folder.Name, (AssetType)folder.Type); | ||
284 | |||
279 | return folder; | 285 | return folder; |
286 | } | ||
280 | } | 287 | } |
281 | } | 288 | } |
282 | 289 | ||