From bbe8ef0528248c64026aa262676c11b0448b68a8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 22 Sep 2016 02:05:25 +0100 Subject: mantis 8027: allow messages to be sent to attachments child prims in llRegionSayTo --- OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index e314730..e1c0cd7 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs @@ -403,10 +403,13 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm foreach (SceneObjectGroup sog in attachments) { if (!sog.IsDeleted) - targets.Add(sog.UUID); + { + SceneObjectPart[] parts = sog.Parts; + foreach(SceneObjectPart p in parts) + targets.Add(p.UUID); + } } - // Need to check each attachment foreach (ListenerInfo li in m_listenerManager.GetListeners(UUID.Zero, channel, name, id, msg)) { UUID liHostID = li.GetHostID(); -- cgit v1.1