let osGetPrimitiveParams also return sitting avatar informationg, if PRIM_LINK_TARGET points to one

0.9.1.0-post-fixes
UbitUmarov 2018-12-19 05:09:38 +00:00
parent f03ee2f795
commit 5c998f6d60
1 changed files with 9 additions and 4 deletions

View File

@ -14879,13 +14879,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return result; return result;
} }
List<SceneObjectPart> parts = GetLinkParts(obj, linknumber); List<ISceneEntity> entities = GetLinkEntities(obj, linknumber);
if(parts.Count == 0) if (entities.Count == 0)
break; break;
rules = remaining.GetSublist(1, -1); rules = remaining.GetSublist(1, -1);
foreach (SceneObjectPart part in parts) foreach (ISceneEntity entity in entities)
remaining = GetPrimParams(part, rules, ref result); {
if (entity is SceneObjectPart)
remaining = GetPrimParams((SceneObjectPart)entity, rules, ref result);
else
remaining = GetPrimParams((ScenePresence)entity, rules, ref result);
}
} }
return result; return result;