Use HasPrivateAttachmentPoint properties in SOG.DeleteGroupFromScene() instead of magic numbers

0.7.4.1
Justin Clark-Casey (justincc) 2012-06-20 23:25:07 +01:00
parent 714db90832
commit 68ea096f1b
1 changed files with 3 additions and 2 deletions

View File

@ -1205,8 +1205,9 @@ namespace OpenSim.Region.Framework.Scenes
part.ClearUpdateSchedule(); part.ClearUpdateSchedule();
if (part == m_rootPart) if (part == m_rootPart)
{ {
if (!IsAttachment || (AttachedAvatar == avatar.ControllingClient.AgentId) || if (!IsAttachment
(AttachmentPoint < 31) || (AttachmentPoint > 38)) || AttachedAvatar == avatar.ControllingClient.AgentId
|| !HasPrivateAttachmentPoint)
avatar.ControllingClient.SendKillObject(m_regionHandle, new List<uint> { part.LocalId }); avatar.ControllingClient.SendKillObject(m_regionHandle, new List<uint> { part.LocalId });
} }
} }