mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Plumb the path for multiple object deletes
This commit is contained in:
@@ -1689,37 +1689,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when one or more objects are removed from the environment into inventory.
|
||||
/// </summary>
|
||||
/// <param name="remoteClient"></param>
|
||||
/// <param name="localID"></param>
|
||||
/// <param name="groupID"></param>
|
||||
/// <param name="action"></param>
|
||||
/// <param name="destinationID"></param>
|
||||
public virtual void DeRezObject(IClientAPI remoteClient, List<uint> localIDs,
|
||||
UUID groupID, DeRezAction action, UUID destinationID)
|
||||
{
|
||||
foreach (uint localID in localIDs)
|
||||
{
|
||||
DeRezObject(remoteClient, localID, groupID, action, destinationID);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when an object is removed from the environment into inventory.
|
||||
/// </summary>
|
||||
/// <param name="remoteClient"></param>
|
||||
/// <param name="localID"></param>
|
||||
/// <param name="groupID"></param>
|
||||
/// <param name="action"></param>
|
||||
/// <param name="destinationID"></param>
|
||||
public virtual void DeRezObject(IClientAPI remoteClient, uint localID,
|
||||
UUID groupID, DeRezAction action, UUID destinationID)
|
||||
{
|
||||
DeRezObjects(remoteClient, new List<uint>() { localID }, groupID, action, destinationID);
|
||||
}
|
||||
|
||||
public virtual void DeRezObjects(IClientAPI remoteClient, List<uint> localIDs,
|
||||
UUID groupID, DeRezAction action, UUID destinationID)
|
||||
{
|
||||
@@ -1990,14 +1959,19 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return group;
|
||||
}
|
||||
|
||||
public virtual bool returnObjects(SceneObjectGroup[] returnobjects, UUID AgentId)
|
||||
public virtual bool returnObjects(SceneObjectGroup[] returnobjects,
|
||||
UUID AgentId)
|
||||
{
|
||||
List<uint> localIDs = new List<uint>();
|
||||
|
||||
foreach (SceneObjectGroup grp in returnobjects)
|
||||
{
|
||||
AddReturn(grp.OwnerID, grp.Name, grp.AbsolutePosition, "parcel owner return");
|
||||
DeRezObject(null, grp.RootPart.LocalId,
|
||||
grp.RootPart.GroupID, DeRezAction.Return, UUID.Zero);
|
||||
AddReturn(grp.OwnerID, grp.Name, grp.AbsolutePosition,
|
||||
"parcel owner return");
|
||||
localIDs.Add(grp.RootPart.LocalId);
|
||||
}
|
||||
DeRezObjects(null, localIDs, UUID.Zero, DeRezAction.Return,
|
||||
UUID.Zero);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user