Use HasPrivateAttachmentPoint properties in SOG.DeleteGroupFromScene() instead of magic numbers
parent
d19600e257
commit
2e0402433d
|
@ -1198,8 +1198,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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue