* Fix sitting avatar showing up properly on the minimap
parent
b9e603f8d8
commit
2cc028e965
|
@ -1637,9 +1637,26 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
if (avatars[i] != this)
|
||||
{
|
||||
if (avatars[i].ParentID != 0)
|
||||
{
|
||||
// sitting avatar
|
||||
SceneObjectPart sop = m_scene.GetSceneObjectPart(avatars[i].ParentID);
|
||||
if (sop != null)
|
||||
{
|
||||
CoarseLocations.Add(sop.AbsolutePosition + avatars[i].m_pos);
|
||||
}
|
||||
else
|
||||
{
|
||||
// we can't find the parent.. ! arg!
|
||||
CoarseLocations.Add(avatars[i].m_pos);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
CoarseLocations.Add(avatars[i].m_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_controllingClient.SendCoarseLocationUpdate(CoarseLocations);
|
||||
|
||||
|
|
Loading…
Reference in New Issue