* refactor: Convert most non SOP methods to use SOG.IsAttachment rather than SOP.IsAttachment

This commit is contained in:
Justin Clarke Casey
2008-11-01 22:04:35 +00:00
parent 44e377d1fb
commit 9366a234cf
7 changed files with 15 additions and 16 deletions

View File

@@ -611,7 +611,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
{
if (obj != null)
{
if ((obj is SceneObjectGroup) && ((SceneObjectGroup)obj).RootPart != null && !((SceneObjectGroup)obj).RootPart.IsAttachment)
if ((obj is SceneObjectGroup) && !((SceneObjectGroup)obj).IsDeleted && !((SceneObjectGroup)obj).IsAttachment)
{
m_scene.EventManager.TriggerParcelPrimCountAdd((SceneObjectGroup)obj);
}

View File

@@ -757,10 +757,9 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
SceneObjectPart part = scene.GetSceneObjectPart(objectID);
if (part.OwnerID != moverID)
{
if (part.ParentGroup != null &&
part.ParentGroup.RootPart != null)
if (part.ParentGroup != null && !part.ParentGroup.IsDeleted)
{
if (part.ParentGroup.RootPart.IsAttachment)
if (part.ParentGroup.IsAttachment)
return false;
}
}