osGetAvatarList: Use AbsolutePosition instead of the position of the physics actor, or the avatar disappears when they sit down.

0.7-release
Tom Grimshaw 2010-06-14 04:03:54 -07:00 committed by Melanie
parent bd346ab8c7
commit 53c32d8773
1 changed files with 3 additions and 6 deletions

View File

@ -2217,15 +2217,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (avatar != null && avatar.UUID != m_host.OwnerID) if (avatar != null && avatar.UUID != m_host.OwnerID)
{ {
if (avatar.IsChildAgent == false) if (avatar.IsChildAgent == false)
{
if (avatar.PhysicsActor != null && avatar.PhysicsActor.Position != null)
{ {
result.Add(avatar.UUID); result.Add(avatar.UUID);
result.Add(avatar.PhysicsActor.Position); result.Add(avatar.AbsolutePosition);
result.Add(avatar.Name); result.Add(avatar.Name);
} }
} }
}
}); });
return result; return result;
} }