mantis 8027: allow messages to be sent to attachments child prims in llRegionSayTo

0.9.0-post-fixes
UbitUmarov 2016-09-22 02:05:25 +01:00
parent bf17da3d61
commit bbe8ef0528
1 changed files with 5 additions and 2 deletions

View File

@ -403,10 +403,13 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
foreach (SceneObjectGroup sog in attachments) foreach (SceneObjectGroup sog in attachments)
{ {
if (!sog.IsDeleted) 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)) foreach (ListenerInfo li in m_listenerManager.GetListeners(UUID.Zero, channel, name, id, msg))
{ {
UUID liHostID = li.GetHostID(); UUID liHostID = li.GetHostID();