diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index f1deaa8..c05ef3c 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -631,6 +631,20 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
631 | { | 631 | { |
632 | m_scene.SendKillObject(new List<uint> { so.RootPart.LocalId }); | 632 | m_scene.SendKillObject(new List<uint> { so.RootPart.LocalId }); |
633 | } | 633 | } |
634 | else if (so.HasPrivateAttachmentPoint) | ||
635 | { | ||
636 | // m_log.DebugFormat( | ||
637 | // "[ATTACHMENTS MODULE]: Killing private HUD {0} for avatars other than {1} at attachment point {2}", | ||
638 | // so.Name, sp.Name, so.AttachmentPoint); | ||
639 | |||
640 | // As this scene object can now only be seen by the attaching avatar, tell everybody else in the | ||
641 | // scene that it's no longer in their awareness. | ||
642 | m_scene.ForEachClient( | ||
643 | client => | ||
644 | { if (client.AgentId != so.AttachedAvatar) | ||
645 | client.SendKillObject(m_scene.RegionInfo.RegionHandle, new List<uint>() { so.LocalId }); | ||
646 | }); | ||
647 | } | ||
634 | 648 | ||
635 | so.IsSelected = false; // fudge.... | 649 | so.IsSelected = false; // fudge.... |
636 | so.ScheduleGroupForFullUpdate(); | 650 | so.ScheduleGroupForFullUpdate(); |