diff options
author | MW | 2007-12-02 10:21:17 +0000 |
---|---|---|
committer | MW | 2007-12-02 10:21:17 +0000 |
commit | b92df4aaafb353b4737aede206e99f10dd946bf1 (patch) | |
tree | 9ae3a2e2b6dc83e6c75948aecf98eafc2930780c /OpenSim | |
parent | Rezzing multiple copies of a inventory prim should now work. (diff) | |
download | opensim-SC-b92df4aaafb353b4737aede206e99f10dd946bf1.zip opensim-SC-b92df4aaafb353b4737aede206e99f10dd946bf1.tar.gz opensim-SC-b92df4aaafb353b4737aede206e99f10dd946bf1.tar.bz2 opensim-SC-b92df4aaafb353b4737aede206e99f10dd946bf1.tar.xz |
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.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCache.cs | 9 | ||||
-rw-r--r-- | OpenSim/Grid/InventoryServer/GridInventoryService.cs | 1 |
2 files changed, 9 insertions, 1 deletions
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 | |||
96 | 96 | ||
97 | if (createdFolder != null) | 97 | if (createdFolder != null) |
98 | { | 98 | { |
99 | m_parent.InventoryService.AddNewInventoryFolder(remoteClient.AgentId, createdFolder); | 99 | InventoryFolderBase createdBaseFolder = new InventoryFolderBase(); |
100 | createdBaseFolder.agentID = createdFolder.agentID; | ||
101 | createdBaseFolder.folderID = createdFolder.folderID; | ||
102 | createdBaseFolder.name = createdFolder.name; | ||
103 | createdBaseFolder.parentID = createdFolder.parentID; | ||
104 | createdBaseFolder.type = createdFolder.type; | ||
105 | createdBaseFolder.version = createdFolder.version; | ||
106 | m_parent.InventoryService.AddNewInventoryFolder(remoteClient.AgentId, createdBaseFolder); | ||
100 | } | 107 | } |
101 | } | 108 | } |
102 | else | 109 | else |
diff --git a/OpenSim/Grid/InventoryServer/GridInventoryService.cs b/OpenSim/Grid/InventoryServer/GridInventoryService.cs index 6983259..47e4e9a 100644 --- a/OpenSim/Grid/InventoryServer/GridInventoryService.cs +++ b/OpenSim/Grid/InventoryServer/GridInventoryService.cs | |||
@@ -81,6 +81,7 @@ namespace OpenSim.Grid.InventoryServer | |||
81 | 81 | ||
82 | public bool AddInventoryFolder( InventoryFolderBase folder) | 82 | public bool AddInventoryFolder( InventoryFolderBase folder) |
83 | { | 83 | { |
84 | Console.WriteLine("creating new folder for " + folder.agentID.ToString()); | ||
84 | AddNewInventoryFolder(folder.agentID, folder); | 85 | AddNewInventoryFolder(folder.agentID, folder); |
85 | return true; | 86 | return true; |
86 | } | 87 | } |