mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Fix deleting object that have been persisted already from the DB
This commit is contained in:
@@ -42,6 +42,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public IClientAPI remoteClient;
|
||||
public SceneObjectGroup objectGroup;
|
||||
public UUID folderID;
|
||||
public bool permissionToDelete;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -87,6 +88,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
dtis.folderID = folderID;
|
||||
dtis.objectGroup = objectGroup;
|
||||
dtis.remoteClient = remoteClient;
|
||||
dtis.permissionToDelete = permissionToDelete;
|
||||
|
||||
m_inventoryDeletes.Enqueue(dtis);
|
||||
}
|
||||
@@ -127,6 +129,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
try
|
||||
{
|
||||
if (x.permissionToDelete)
|
||||
m_scene.DeleteFromStorage(x.objectGroup.UUID);
|
||||
m_scene.DeleteToInventory(x.destination, x.folderID, x.objectGroup, x.remoteClient);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
@@ -1638,8 +1638,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="remoteClient"> </param>
|
||||
/// <param name="objectGroup"></param>
|
||||
/// <param name="folderID"></param>
|
||||
/// <param name="permissionToDelete"></param>
|
||||
public virtual UUID DeleteToInventory(int destination, UUID folderID,
|
||||
SceneObjectGroup objectGroup, IClientAPI remoteClient)
|
||||
SceneObjectGroup objectGroup, IClientAPI remoteClient)
|
||||
{
|
||||
UUID assetID = UUID.Zero;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user