diff options
author | Diva Canto | 2016-06-05 16:43:28 -0700 |
---|---|---|
committer | Diva Canto | 2016-06-06 08:37:15 -0700 |
commit | c4c3163db95a0ad32335e70dfc375287f28452b5 (patch) | |
tree | df3e15173c804c40b6704becd35cd3a9d5bf20cb /OpenSim/Region/CoreModules/Framework | |
parent | Correct spelling and grammar, thanks Mata Hari (diff) | |
download | opensim-SC_OLD-c4c3163db95a0ad32335e70dfc375287f28452b5.zip opensim-SC_OLD-c4c3163db95a0ad32335e70dfc375287f28452b5.tar.gz opensim-SC_OLD-c4c3163db95a0ad32335e70dfc375287f28452b5.tar.bz2 opensim-SC_OLD-c4c3163db95a0ad32335e70dfc375287f28452b5.tar.xz |
Don't copy assets to foreign asset servers when the objects are being deleted
Conflicts:
OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs | 9 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs index 6b78fe8..96e043e 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs | |||
@@ -209,7 +209,14 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
209 | } | 209 | } |
210 | } | 210 | } |
211 | 211 | ||
212 | public void PostInventoryAsset(InventoryItemBase item, int userlevel) | 212 | private void PostInventoryAsset(InventoryItemBase item, int userlevel) |
213 | { | ||
214 | InventoryFolderBase f = m_Scene.InventoryService.GetFolderForType(item.Owner, FolderType.Trash); | ||
215 | if (f == null || (f != null && item.Folder != f.ID)) | ||
216 | PostInventoryAsset(item.Owner, (AssetType)item.AssetType, item.AssetID, item.Name, userlevel); | ||
217 | } | ||
218 | |||
219 | private void PostInventoryAsset(UUID avatarID, AssetType type, UUID assetID, string name, int userlevel) | ||
213 | { | 220 | { |
214 | if (item.AssetType == (int)AssetType.Link) | 221 | if (item.AssetType == (int)AssetType.Link) |
215 | return; | 222 | return; |
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index ba8b1ee..64233d5 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -566,7 +566,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
566 | } | 566 | } |
567 | 567 | ||
568 | // This is a hook to do some per-asset post-processing for subclasses that need that | 568 | // This is a hook to do some per-asset post-processing for subclasses that need that |
569 | if (remoteClient != null) | 569 | if (remoteClient != null && action != DeRezAction.Delete) |
570 | ExportAsset(remoteClient.AgentId, asset.FullID); | 570 | ExportAsset(remoteClient.AgentId, asset.FullID); |
571 | 571 | ||
572 | return item; | 572 | return item; |