LINK_ALL_CHILDREN includes sitting avatars

0.9.1.0-post-fixes
UbitUmarov 2018-12-19 05:40:18 +00:00
parent 5c998f6d60
commit 23d03517a9
1 changed files with 4 additions and 0 deletions

View File

@ -753,6 +753,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (ret.Contains(part.ParentGroup.RootPart)) if (ret.Contains(part.ParentGroup.RootPart))
ret.Remove(part.ParentGroup.RootPart); ret.Remove(part.ParentGroup.RootPart);
List<ScenePresence> avs = part.ParentGroup.GetSittingAvatars();
if(avs!= null && avs.Count > 0)
ret.AddRange(avs);
return ret; return ret;
case ScriptBaseClass.LINK_THIS: case ScriptBaseClass.LINK_THIS: