From b92df4aaafb353b4737aede206e99f10dd946bf1 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 2 Dec 2007 10:21:17 +0000 Subject: 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. --- OpenSim/Framework/Communications/Cache/UserProfileCache.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/Communications/Cache') diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs index 379ac9d..3c8ab51 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCache.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCache.cs @@ -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 -- cgit v1.1