From 783443705da92c2ebc85c7999d11ef79d014dd73 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 3 Nov 2012 12:03:47 -0700 Subject: HG Suitcase Inventory: if RootFolder type doesn't work, look for any folder with parentID=UUID.Zero --- OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Services') diff --git a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs index 677bd7b..784f136 100644 --- a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs +++ b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs @@ -460,6 +460,15 @@ namespace OpenSim.Services.HypergridService if (folders != null && folders.Length > 0) return folders[0]; + + // OK, so the RootFolder type didn't work. Let's look for any type with parent UUID.Zero. + folders = m_Database.GetFolders( + new string[] { "agentID", "folderName", "parentFolderID" }, + new string[] { principalID.ToString(), "My Inventory", UUID.Zero.ToString() }); + + if (folders != null && folders.Length > 0) + return folders[0]; + return null; } -- cgit v1.1