diff options
author | UbitUmarov | 2016-09-22 02:05:25 +0100 |
---|---|---|
committer | UbitUmarov | 2016-09-22 02:05:25 +0100 |
commit | bbe8ef0528248c64026aa262676c11b0448b68a8 (patch) | |
tree | 10056d4645072c38e0c1f7d1025fa2b2c6e6ee08 /OpenSim/Region/CoreModules/Scripting | |
parent | check for null target, minor cleanup (diff) | |
download | opensim-SC_OLD-bbe8ef0528248c64026aa262676c11b0448b68a8.zip opensim-SC_OLD-bbe8ef0528248c64026aa262676c11b0448b68a8.tar.gz opensim-SC_OLD-bbe8ef0528248c64026aa262676c11b0448b68a8.tar.bz2 opensim-SC_OLD-bbe8ef0528248c64026aa262676c11b0448b68a8.tar.xz |
mantis 8027: allow messages to be sent to attachments child prims in llRegionSayTo
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 7 |
1 files changed, 5 insertions, 2 deletions
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 | |||
403 | foreach (SceneObjectGroup sog in attachments) | 403 | foreach (SceneObjectGroup sog in attachments) |
404 | { | 404 | { |
405 | if (!sog.IsDeleted) | 405 | if (!sog.IsDeleted) |
406 | targets.Add(sog.UUID); | 406 | { |
407 | SceneObjectPart[] parts = sog.Parts; | ||
408 | foreach(SceneObjectPart p in parts) | ||
409 | targets.Add(p.UUID); | ||
410 | } | ||
407 | } | 411 | } |
408 | 412 | ||
409 | // Need to check each attachment | ||
410 | foreach (ListenerInfo li in m_listenerManager.GetListeners(UUID.Zero, channel, name, id, msg)) | 413 | foreach (ListenerInfo li in m_listenerManager.GetListeners(UUID.Zero, channel, name, id, msg)) |
411 | { | 414 | { |
412 | UUID liHostID = li.GetHostID(); | 415 | UUID liHostID = li.GetHostID(); |