diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/Inventory/RemoteXInventoryServiceConnector.cs')
-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 | } |