From 23d03517a982634f11dc807ffa4607474e17fa02 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 19 Dec 2018 05:40:18 +0000 Subject: LINK_ALL_CHILDREN includes sitting avatars --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 66b209c..4d71cc8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -753,6 +753,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (ret.Contains(part.ParentGroup.RootPart)) ret.Remove(part.ParentGroup.RootPart); + List avs = part.ParentGroup.GetSittingAvatars(); + if(avs!= null && avs.Count > 0) + ret.AddRange(avs); + return ret; case ScriptBaseClass.LINK_THIS: -- cgit v1.1