osGetAvatarList: Use AbsolutePosition instead of the position of the physics actor, or the avatar disappears when they sit down.
parent
bd346ab8c7
commit
53c32d8773
|
@ -2218,12 +2218,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
{
|
{
|
||||||
if (avatar.IsChildAgent == false)
|
if (avatar.IsChildAgent == false)
|
||||||
{
|
{
|
||||||
if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null)
|
result.Add(avatar.UUID);
|
||||||
{
|
result.Add(avatar.AbsolutePosition);
|
||||||
result.Add(avatar.UUID);
|
result.Add(avatar.Name);
|
||||||
result.Add(avatar.PhysicsActor.Position);
|
|
||||||
result.Add(avatar.Name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue