mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
although the attachmentPoint argument is a uint, zero is not a valid attachment point
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
d297eb39e5
commit
663bfbb372
@@ -3418,7 +3418,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public List<SceneObjectGroup> GetAttachments(uint attachmentPoint)
|
||||
{
|
||||
List<SceneObjectGroup> attachments = new List<SceneObjectGroup>();
|
||||
|
||||
|
||||
if (attachmentPoint >= 0)
|
||||
{
|
||||
lock (m_attachments)
|
||||
{
|
||||
foreach (SceneObjectGroup so in m_attachments)
|
||||
@@ -3427,6 +3429,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
attachments.Add(so);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return attachments;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user