Add giving lists of items to another prim

avinationmerge
Melanie 2011-03-25 02:39:17 +01:00
parent 5ef490b5ad
commit 8338b74d3f
1 changed files with 8 additions and 0 deletions

View File

@ -1301,6 +1301,14 @@ namespace OpenSim.Region.Framework.Scenes
public UUID MoveTaskInventoryItems(UUID destID, string category, SceneObjectPart host, List<UUID> items)
{
SceneObjectPart destPart = GetSceneObjectPart(destID);
if (destPart != null) // Move into a prim
{
foreach(UUID itemID in items)
MoveTaskInventoryItem(destID, host, itemID);
return destID; // Prim folder ID == prim ID
}
InventoryFolderBase rootFolder = InventoryService.GetRootFolder(destID);
UUID newFolderID = UUID.Random();