diff options
author | Melanie Thielker | 2010-06-01 02:27:30 +0200 |
---|---|---|
committer | Melanie | 2010-06-01 02:10:22 +0100 |
commit | f29cb57bf183c0530ead35890163f39903c8f410 (patch) | |
tree | 303f04127a4051be5d27c2007edc359e1e306478 /OpenSim/Region/CoreModules | |
parent | Add a method to get the bounding box and root prim offsets within it for (diff) | |
download | opensim-SC-f29cb57bf183c0530ead35890163f39903c8f410.zip opensim-SC-f29cb57bf183c0530ead35890163f39903c8f410.tar.gz opensim-SC-f29cb57bf183c0530ead35890163f39903c8f410.tar.bz2 opensim-SC-f29cb57bf183c0530ead35890163f39903c8f410.tar.xz |
Continuing refactor. Refactor DeRezObject to deal with multiple objects
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs | 17 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 14 |
2 files changed, 29 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs index 93aeb94..2ab46aa 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs | |||
@@ -119,9 +119,22 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
119 | /// | 119 | /// |
120 | /// DeleteToInventory | 120 | /// DeleteToInventory |
121 | /// | 121 | /// |
122 | public override UUID DeleteToInventory(DeRezAction action, UUID folderID, SceneObjectGroup objectGroup, IClientAPI remoteClient) | 122 | public override UUID DeleteToInventory(DeRezAction action, UUID folderID, List<SceneObjectGroup> objectGroups, IClientAPI remoteClient) |
123 | { | 123 | { |
124 | UUID assetID = base.DeleteToInventory(action, folderID, objectGroup, remoteClient); | 124 | UUID ret = UUID.Zero; |
125 | |||
126 | // HACK: Only works for lists of length one. | ||
127 | // Intermediate version, just to make things compile | ||
128 | foreach (SceneObjectGroup g in objectGroups) | ||
129 | ret = DeleteToInventory(action, folderID, g, remoteClient); | ||
130 | |||
131 | return ret; | ||
132 | } | ||
133 | |||
134 | public virtual UUID DeleteToInventory(DeRezAction action, UUID folderID, | ||
135 | SceneObjectGroup objectGroup, IClientAPI remoteClient) | ||
136 | { | ||
137 | UUID assetID = base.DeleteToInventory(action, folderID, new List<SceneObjectGroup>() {objectGroup}, remoteClient); | ||
125 | 138 | ||
126 | if (!assetID.Equals(UUID.Zero)) | 139 | if (!assetID.Equals(UUID.Zero)) |
127 | { | 140 | { |
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index 901dcba..3035d88 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -189,6 +189,20 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
189 | /// <param name="objectGroup"></param> | 189 | /// <param name="objectGroup"></param> |
190 | /// <param name="remoteClient"> </param> | 190 | /// <param name="remoteClient"> </param> |
191 | public virtual UUID DeleteToInventory(DeRezAction action, UUID folderID, | 191 | public virtual UUID DeleteToInventory(DeRezAction action, UUID folderID, |
192 | List<SceneObjectGroup> objectGroups, IClientAPI remoteClient) | ||
193 | { | ||
194 | // HACK: This is only working for lists containing a single item! | ||
195 | // It's just a hack to make this WIP compile and run. Nothing | ||
196 | // currently calls this with multiple items. | ||
197 | UUID ret = UUID.Zero; | ||
198 | |||
199 | foreach (SceneObjectGroup g in objectGroups) | ||
200 | ret = DeleteToInventory(action, folderID, g, remoteClient); | ||
201 | |||
202 | return ret; | ||
203 | } | ||
204 | |||
205 | public virtual UUID DeleteToInventory(DeRezAction action, UUID folderID, | ||
192 | SceneObjectGroup objectGroup, IClientAPI remoteClient) | 206 | SceneObjectGroup objectGroup, IClientAPI remoteClient) |
193 | { | 207 | { |
194 | UUID assetID = UUID.Zero; | 208 | UUID assetID = UUID.Zero; |