New Inventory folder should now be stored to the inventory server/database. This also seems to fix the problem of Body parts not being persisted properly.

afrisby
MW 2007-12-02 10:21:17 +00:00
parent 0a2425432a
commit b92df4aaaf
2 changed files with 9 additions and 1 deletions

View File

@ -96,7 +96,14 @@ namespace OpenSim.Framework.Communications.Cache
if (createdFolder != null)
{
m_parent.InventoryService.AddNewInventoryFolder(remoteClient.AgentId, createdFolder);
InventoryFolderBase createdBaseFolder = new InventoryFolderBase();
createdBaseFolder.agentID = createdFolder.agentID;
createdBaseFolder.folderID = createdFolder.folderID;
createdBaseFolder.name = createdFolder.name;
createdBaseFolder.parentID = createdFolder.parentID;
createdBaseFolder.type = createdFolder.type;
createdBaseFolder.version = createdFolder.version;
m_parent.InventoryService.AddNewInventoryFolder(remoteClient.AgentId, createdBaseFolder);
}
}
else

View File

@ -81,6 +81,7 @@ namespace OpenSim.Grid.InventoryServer
public bool AddInventoryFolder( InventoryFolderBase folder)
{
Console.WriteLine("creating new folder for " + folder.agentID.ToString());
AddNewInventoryFolder(folder.agentID, folder);
return true;
}