diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 3e8c7e5..0176921 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3631,13 +3631,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
3631 | public List<SceneObjectGroup> GetAttachments(uint attachmentPoint) | 3631 | public List<SceneObjectGroup> GetAttachments(uint attachmentPoint) |
3632 | { | 3632 | { |
3633 | List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(); | 3633 | List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(); |
3634 | 3634 | ||
3635 | lock (m_attachments) | 3635 | if (attachmentPoint >= 0) |
3636 | { | 3636 | { |
3637 | foreach (SceneObjectGroup so in m_attachments) | 3637 | lock (m_attachments) |
3638 | { | 3638 | { |
3639 | if (attachmentPoint == so.AttachmentPoint) | 3639 | foreach (SceneObjectGroup so in m_attachments) |
3640 | attachments.Add(so); | 3640 | { |
3641 | if (attachmentPoint == so.AttachmentPoint) | ||
3642 | attachments.Add(so); | ||
3643 | } | ||
3641 | } | 3644 | } |
3642 | } | 3645 | } |
3643 | 3646 | ||