Better version of previous commit
parent
f81e289a1b
commit
df63bfafef
|
@ -495,9 +495,13 @@ namespace OpenSim.Services.HypergridService
|
||||||
|
|
||||||
private XInventoryFolder GetCurrentOutfitXFolder(UUID userID)
|
private XInventoryFolder GetCurrentOutfitXFolder(UUID userID)
|
||||||
{
|
{
|
||||||
|
XInventoryFolder root = GetRootXFolder(userID);
|
||||||
|
if (root == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
XInventoryFolder[] folders = m_Database.GetFolders(
|
XInventoryFolder[] folders = m_Database.GetFolders(
|
||||||
new string[] { "agentID", "type" },
|
new string[] { "agentID", "type", "parentFolderID" },
|
||||||
new string[] { userID.ToString(), ((int)AssetType.CurrentOutfitFolder).ToString() });
|
new string[] { userID.ToString(), ((int)AssetType.CurrentOutfitFolder).ToString(), root.folderID.ToString() });
|
||||||
|
|
||||||
if (folders.Length == 0)
|
if (folders.Length == 0)
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue