diff options
author | BlueWall | 2012-05-18 19:34:19 -0400 |
---|---|---|
committer | BlueWall | 2012-05-18 19:34:19 -0400 |
commit | e338c1543332cfef1535ebb21b0401821b69a3f1 (patch) | |
tree | f367f61306981526f294ef3cdee66cc852a34a40 /OpenSim | |
parent | Cleanup + change properties to set fields with private set : Thanks Justin fo... (diff) | |
parent | Enable FetchInventoryDescendents2 and FetchInventory2 caps by default. This ... (diff) | |
download | opensim-SC-e338c1543332cfef1535ebb21b0401821b69a3f1.zip opensim-SC-e338c1543332cfef1535ebb21b0401821b69a3f1.tar.gz opensim-SC-e338c1543332cfef1535ebb21b0401821b69a3f1.tar.bz2 opensim-SC-e338c1543332cfef1535ebb21b0401821b69a3f1.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Services/InventoryService/XInventoryService.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index 15156d0..eed88bd 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs | |||
@@ -307,14 +307,20 @@ namespace OpenSim.Services.InventoryService | |||
307 | if (check != null) | 307 | if (check != null) |
308 | return false; | 308 | return false; |
309 | 309 | ||
310 | if (folder.Type == (short)AssetType.Folder || folder.Type == (short)AssetType.Unknown || | 310 | if (folder.Type == (short)AssetType.Folder |
311 | GetFolderForType(folder.Owner, (AssetType)(folder.Type)) == null) | 311 | || folder.Type == (short)AssetType.Unknown |
312 | || folder.Type == (short)AssetType.OutfitFolder | ||
313 | || GetFolderForType(folder.Owner, (AssetType)(folder.Type)) == null) | ||
312 | { | 314 | { |
313 | XInventoryFolder xFolder = ConvertFromOpenSim(folder); | 315 | XInventoryFolder xFolder = ConvertFromOpenSim(folder); |
314 | return m_Database.StoreFolder(xFolder); | 316 | return m_Database.StoreFolder(xFolder); |
315 | } | 317 | } |
316 | else | 318 | else |
317 | m_log.DebugFormat("[XINVENTORY]: Folder {0} of type {1} already exists", folder.Name, folder.Type); | 319 | { |
320 | m_log.WarnFormat( | ||
321 | "[XINVENTORY]: Folder of type {0} already exists when tried to add {1} to {2} for {3}", | ||
322 | folder.Type, folder.Name, folder.ParentID, folder.Owner); | ||
323 | } | ||
318 | 324 | ||
319 | return false; | 325 | return false; |
320 | } | 326 | } |