From f29cb57bf183c0530ead35890163f39903c8f410 Mon Sep 17 00:00:00 2001
From: Melanie Thielker
Date: Tue, 1 Jun 2010 02:27:30 +0200
Subject: Continuing refactor. Refactor DeRezObject to deal with multiple
objects
---
.../Framework/InventoryAccess/InventoryAccessModule.cs | 14 ++++++++++++++
1 file changed, 14 insertions(+)
(limited to 'OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs')
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
///
///
public virtual UUID DeleteToInventory(DeRezAction action, UUID folderID,
+ List objectGroups, IClientAPI remoteClient)
+ {
+ // HACK: This is only working for lists containing a single item!
+ // It's just a hack to make this WIP compile and run. Nothing
+ // currently calls this with multiple items.
+ UUID ret = UUID.Zero;
+
+ foreach (SceneObjectGroup g in objectGroups)
+ ret = DeleteToInventory(action, folderID, g, remoteClient);
+
+ return ret;
+ }
+
+ public virtual UUID DeleteToInventory(DeRezAction action, UUID folderID,
SceneObjectGroup objectGroup, IClientAPI remoteClient)
{
UUID assetID = UUID.Zero;
--
cgit v1.1