replace LSL reference to sog GetLinkedAvatars

avinationmerge
UbitUmarov 2015-09-21 21:38:50 +01:00
parent 25677e4a1b
commit a6b8cc9887
1 changed files with 5 additions and 3 deletions

View File

@ -539,8 +539,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (m_host == null || m_host.ParentGroup == null || m_host.ParentGroup.IsDeleted)
return ret;
List<ScenePresence> avs = m_host.ParentGroup.GetLinkedAvatars();
// List<ScenePresence> avs = m_host.ParentGroup.GetLinkedAvatars();
// this needs check
List<ScenePresence> avs = m_host.ParentGroup.GetSittingAvatars();
switch (linkType)
{
case ScriptBaseClass.LINK_SET:
@ -2801,7 +2802,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
else // fix sitting avatars. This is only needed bc of how we link avas to child parts, not root part
{
List<ScenePresence> sittingavas = part.ParentGroup.GetLinkedAvatars();
// List<ScenePresence> sittingavas = part.ParentGroup.GetLinkedAvatars();
List<ScenePresence> sittingavas = part.ParentGroup.GetSittingAvatars();
if (sittingavas.Count > 0)
{
foreach (ScenePresence av in sittingavas)