diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index fbb3177822..339d0c422f 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3383,6 +3383,27 @@ namespace OpenSim.Region.Framework.Scenes
m_attachments.Add(gobj);
}
}
+
+ ///
+ /// Get the scene object attached to the given point.
+ ///
+ ///
+ /// Returns an empty list if there were no attachments at the point.
+ public List GetAttachments(uint attachmentPoint)
+ {
+ List attachments = new List();
+
+ lock (m_attachments)
+ {
+ foreach (SceneObjectGroup so in m_attachments)
+ {
+ if (attachmentPoint == so.RootPart.AttachmentPoint)
+ attachments.Add(so);
+ }
+ }
+
+ return attachments;
+ }
public bool HasAttachments()
{