mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
If the client requests that an object be deleted, and the SOG/SOP is null and/or is marked as deleted, just send the KillObject
This commit is contained in:
@@ -1700,11 +1700,19 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// Invalid id
|
||||
SceneObjectPart part = GetSceneObjectPart(localID);
|
||||
if (part == null)
|
||||
{
|
||||
//Client still thinks the object exists, kill it
|
||||
SendKillObject(localID);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Already deleted by someone else
|
||||
if (part.ParentGroup == null || part.ParentGroup.IsDeleted)
|
||||
{
|
||||
//Client still thinks the object exists, kill it
|
||||
SendKillObject(localID);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Can't delete child prims
|
||||
if (part != part.ParentGroup.RootPart)
|
||||
|
||||
Reference in New Issue
Block a user