* Added small convenience function to recursively calculate total amounts of items loaded under library inventory node
parent
2dae0291c5
commit
aa12787a17
|
@ -315,5 +315,20 @@ namespace OpenSim.Framework.Communications.Cache
|
|||
|
||||
return folderList;
|
||||
}
|
||||
|
||||
public int TotalCount
|
||||
{
|
||||
get
|
||||
{
|
||||
int total = Items.Count;
|
||||
|
||||
foreach (InventoryFolderImpl folder in SubFolders.Values)
|
||||
{
|
||||
total = total + folder.TotalCount;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue