diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index fbb3177..cc9355e 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2464,7 +2464,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2464 | m_controllingClient.SendAvatarDataImmediate(this); | 2464 | m_controllingClient.SendAvatarDataImmediate(this); |
2465 | 2465 | ||
2466 | SendInitialFullUpdateToAllClients(); | 2466 | SendInitialFullUpdateToAllClients(); |
2467 | SendAppearanceToAllOtherAgents(); | ||
2468 | } | 2467 | } |
2469 | 2468 | ||
2470 | /// <summary> | 2469 | /// <summary> |
@@ -3383,6 +3382,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
3383 | m_attachments.Add(gobj); | 3382 | m_attachments.Add(gobj); |
3384 | } | 3383 | } |
3385 | } | 3384 | } |
3385 | |||
3386 | /// <summary> | ||
3387 | /// Get the scene object attached to the given point. | ||
3388 | /// </summary> | ||
3389 | /// <param name="attachmentPoint"></param> | ||
3390 | /// <returns>Returns an empty list if there were no attachments at the point.</returns> | ||
3391 | public List<SceneObjectGroup> GetAttachments(uint attachmentPoint) | ||
3392 | { | ||
3393 | List<SceneObjectGroup> attachments = new List<SceneObjectGroup>(); | ||
3394 | |||
3395 | lock (m_attachments) | ||
3396 | { | ||
3397 | foreach (SceneObjectGroup so in m_attachments) | ||
3398 | { | ||
3399 | if (attachmentPoint == so.RootPart.AttachmentPoint) | ||
3400 | attachments.Add(so); | ||
3401 | } | ||
3402 | } | ||
3403 | |||
3404 | return attachments; | ||
3405 | } | ||
3386 | 3406 | ||
3387 | public bool HasAttachments() | 3407 | public bool HasAttachments() |
3388 | { | 3408 | { |