although the attachmentPoint argument is a uint, zero is not a valid attachment point
parent
d297eb39e5
commit
663bfbb372
|
@ -3419,6 +3419,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
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