* Introduce an IsAttachment property on the group level (which just returns false if the group is already deleted)

* This is to avoid repetitive null checks - I'm beginning to think that blasting away the root part on object deletion is actually a bad move.  Perhaps we should leave it around 
and let the client ignore any superfluous packets (which it may well do anyway), since we're constantly exposing a race condition
This commit is contained in:
Justin Clarke Casey
2008-11-01 21:50:07 +00:00
parent b03e34dd2d
commit 7c04d27875
2 changed files with 21 additions and 1 deletions

View File

@@ -276,7 +276,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
{
SceneObjectGroup sceneObject = (SceneObjectGroup)entity;
if (sceneObject.RootPart != null && !sceneObject.RootPart.IsAttachment)
if (!sceneObject.IsDeleted && !sceneObject.IsAttachment)
sceneObjects.Add((SceneObjectGroup)entity);
}
}