Inventory should be working again in sandbox mode
parent
98705e6211
commit
5917d36219
|
@ -101,6 +101,19 @@ namespace OpenSim.Framework.Inventory
|
|||
return false;
|
||||
}
|
||||
|
||||
public LLUUID GetFolderID(string folderName)
|
||||
{
|
||||
foreach (InventoryFolder inv in this.InventoryFolders.Values)
|
||||
{
|
||||
if (inv.FolderName == folderName)
|
||||
{
|
||||
return inv.FolderID;
|
||||
}
|
||||
}
|
||||
|
||||
return LLUUID.Zero;
|
||||
}
|
||||
|
||||
public bool UpdateItemAsset(LLUUID itemID, AssetBase asset)
|
||||
{
|
||||
if(this.InventoryItems.ContainsKey(itemID))
|
||||
|
|
|
@ -183,6 +183,8 @@ namespace OpenSim.UserServer
|
|||
this.SecureSessionID = LLUUID.Random();
|
||||
|
||||
this.userProfile.Inventory.CreateRootFolder(this.userProfile.UUID, true);
|
||||
this.baseFolderID = this.userProfile.Inventory.GetFolderID("Textures");
|
||||
this.inventoryFolderID = this.userProfile.Inventory.GetFolderID("My Inventory-");
|
||||
Hashtable InventoryRootHash = new Hashtable();
|
||||
InventoryRootHash["folder_id"] = this.userProfile.Inventory.InventoryRoot.FolderID.ToStringHyphenated();
|
||||
this.inventoryRoot.Add(InventoryRootHash);
|
||||
|
|
|
@ -192,6 +192,7 @@ namespace OpenSim.UserServer
|
|||
_login.Agent = loginResponse.AgentID;
|
||||
_login.Session = loginResponse.SessionID;
|
||||
_login.SecureSession = loginResponse.SecureSessionID;
|
||||
|
||||
_login.BaseFolder = loginResponse.BaseFolderID;
|
||||
_login.InventoryFolder = loginResponse.InventoryFolderID;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
# Visual C# Express 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Terrain.BasicTerrain", "OpenSim.Terrain.BasicTerrain\OpenSim.Terrain.BasicTerrain.csproj", "{2270B8FE-0000-0000-0000-000000000000}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenSim.Storage.LocalStorageBerkeleyDB", "OpenSim.Storage\LocalStorageBerkeleyDB\OpenSim.Storage.LocalStorageBerkeleyDB.csproj", "{EE9E5D96-0000-0000-0000-000000000000}"
|
||||
|
|
Loading…
Reference in New Issue