From f673b73471dd450881006a5281c15b4b70c96b2d Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 29 Mar 2007 17:04:24 +0000 Subject: Fixed so Inventory structure is correct after a log out and re-login (in Sandbox accounts) --- OpenSim.RegionServer/Assets/InventoryCache.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim.RegionServer/Assets/InventoryCache.cs') diff --git a/OpenSim.RegionServer/Assets/InventoryCache.cs b/OpenSim.RegionServer/Assets/InventoryCache.cs index 1090940..cc7cc29 100644 --- a/OpenSim.RegionServer/Assets/InventoryCache.cs +++ b/OpenSim.RegionServer/Assets/InventoryCache.cs @@ -112,6 +112,19 @@ namespace OpenSim.Assets return res; } + public bool CreateNewInventoryFolder(SimClient remoteClient, LLUUID folderID, ushort type, string folderName, LLUUID parent) + { + bool res = false; + if (folderID != LLUUID.Zero) //don't create a folder with a zero id + { + if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) + { + res = this._agentsInventory[remoteClient.AgentID].CreateNewFolder(folderID, type, folderName, parent); + } + } + return res; + } + public LLUUID AddNewInventoryItem(SimClient remoteClient, LLUUID folderID, OpenSim.Framework.Assets.AssetBase asset) { LLUUID newItem = null; -- cgit v1.1