From 5917d36219d1143ff3129f6e2692ab25f2ea1b5f Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 13 May 2007 13:10:15 +0000 Subject: Inventory should be working again in sandbox mode --- OpenSim.Servers/LoginResponse.cs | 2 ++ OpenSim.Servers/LoginServer.cs | 1 + 2 files changed, 3 insertions(+) (limited to 'OpenSim.Servers') diff --git a/OpenSim.Servers/LoginResponse.cs b/OpenSim.Servers/LoginResponse.cs index c51b8b1..ac4d2ab 100644 --- a/OpenSim.Servers/LoginResponse.cs +++ b/OpenSim.Servers/LoginResponse.cs @@ -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); diff --git a/OpenSim.Servers/LoginServer.cs b/OpenSim.Servers/LoginServer.cs index 44038ff..0aeb15a 100644 --- a/OpenSim.Servers/LoginServer.cs +++ b/OpenSim.Servers/LoginServer.cs @@ -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; -- cgit v1.1