HG Suitcase Inventory: if RootFolder type doesn't work, look for any folder with parentID=UUID.Zero

integration
Diva Canto 2012-11-03 12:03:47 -07:00
parent 7412795a0b
commit 783443705d
1 changed files with 9 additions and 0 deletions

View File

@ -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;
}