although the attachmentPoint argument is a uint, zero is not a valid attachment point
parent
d297eb39e5
commit
663bfbb372
|
@ -3418,7 +3418,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public List<SceneObjectGroup> GetAttachments(uint attachmentPoint)
|
public List<SceneObjectGroup> GetAttachments(uint attachmentPoint)
|
||||||
{
|
{
|
||||||
List<SceneObjectGroup> attachments = new List<SceneObjectGroup>();
|
List<SceneObjectGroup> attachments = new List<SceneObjectGroup>();
|
||||||
|
|
||||||
|
if (attachmentPoint >= 0)
|
||||||
|
{
|
||||||
lock (m_attachments)
|
lock (m_attachments)
|
||||||
{
|
{
|
||||||
foreach (SceneObjectGroup so in m_attachments)
|
foreach (SceneObjectGroup so in m_attachments)
|
||||||
|
@ -3427,6 +3429,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
attachments.Add(so);
|
attachments.Add(so);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return attachments;
|
return attachments;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue