diff options
author | Justin Clark-Casey (justincc) | 2010-08-23 23:25:36 +0100 |
---|---|---|
committer | Diva Canto | 2010-08-24 17:22:33 -0700 |
commit | 4f63edaa728de7f0b77083af2dd92e64b017cc92 (patch) | |
tree | 65b3ad437cf5a2cea0f53dd991ec50e6f291602a | |
parent | minor: some doc for the MoveTaskInventoryItem method in Scene.Inventory.cs (diff) | |
download | opensim-SC_OLD-4f63edaa728de7f0b77083af2dd92e64b017cc92.zip opensim-SC_OLD-4f63edaa728de7f0b77083af2dd92e64b017cc92.tar.gz opensim-SC_OLD-4f63edaa728de7f0b77083af2dd92e64b017cc92.tar.bz2 opensim-SC_OLD-4f63edaa728de7f0b77083af2dd92e64b017cc92.tar.xz |
Add system lookup folder fix to the RemoveXInventoryServiceConnector as well since this presumably suffers from the same problem.
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs index 62ed7be..cf5ad4a 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs | |||
@@ -229,6 +229,23 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory | |||
229 | { | 229 | { |
230 | if (item == null) | 230 | if (item == null) |
231 | return false; | 231 | return false; |
232 | |||
233 | if (UUID.Zero == item.Folder) | ||
234 | { | ||
235 | InventoryFolderBase f = m_RemoteConnector.GetFolderForType(item.Owner, (AssetType)item.AssetType); | ||
236 | if (f != null) | ||
237 | { | ||
238 | item.Folder = f.ID; | ||
239 | } | ||
240 | else | ||
241 | { | ||
242 | f = m_RemoteConnector.GetRootFolder(item.Owner); | ||
243 | if (f != null) | ||
244 | item.Folder = f.ID; | ||
245 | else | ||
246 | return false; | ||
247 | } | ||
248 | } | ||
232 | 249 | ||
233 | return m_RemoteConnector.AddItem(item); | 250 | return m_RemoteConnector.AddItem(item); |
234 | } | 251 | } |