From a6b8cc9887687792868808e87ae0154f3e433522 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 21 Sep 2015 21:38:50 +0100 Subject: replace LSL reference to sog GetLinkedAvatars --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 337e862..de4fce3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -538,9 +538,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api List ret = new List(); if (m_host == null || m_host.ParentGroup == null || m_host.ParentGroup.IsDeleted) return ret; - - List avs = m_host.ParentGroup.GetLinkedAvatars(); + // List avs = m_host.ParentGroup.GetLinkedAvatars(); + // this needs check + List 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 sittingavas = part.ParentGroup.GetLinkedAvatars(); + // List sittingavas = part.ParentGroup.GetLinkedAvatars(); + List sittingavas = part.ParentGroup.GetSittingAvatars(); if (sittingavas.Count > 0) { foreach (ScenePresence av in sittingavas) -- cgit v1.1