aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 2ed00a0..6e3afa9 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3911,6 +3911,27 @@ if (m_animator.m_jumping) force.Z = m_animator.m_jumpVelocity; // add for ju
3911 m_attachments.Add(gobj); 3911 m_attachments.Add(gobj);
3912 } 3912 }
3913 } 3913 }
3914
3915 /// <summary>
3916 /// Get the scene object attached to the given point.
3917 /// </summary>
3918 /// <param name="attachmentPoint"></param>
3919 /// <returns>Returns an empty list if there were no attachments at the point.</returns>
3920 public List<SceneObjectGroup> GetAttachments(uint attachmentPoint)
3921 {
3922 List<SceneObjectGroup> attachments = new List<SceneObjectGroup>();
3923
3924 lock (m_attachments)
3925 {
3926 foreach (SceneObjectGroup so in m_attachments)
3927 {
3928 if (attachmentPoint == so.RootPart.AttachmentPoint)
3929 attachments.Add(so);
3930 }
3931 }
3932
3933 return attachments;
3934 }
3914 3935
3915 public bool HasAttachments() 3936 public bool HasAttachments()
3916 { 3937 {