Disable distance sorting for child agents. It makes no sense there, as the
base point for the sort is 128,128,128, causing funny visuals0.6.0-stable
parent
4cd7907314
commit
f79e7597b6
|
@ -602,10 +602,13 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
m_pendingObjects = new Queue<SceneObjectGroup>();
|
||||
|
||||
List<EntityBase> ents = new List<EntityBase>(m_scene.Entities.Values);
|
||||
if (!m_isChildAgent) // Proximity sort makes no sense for
|
||||
{ // Child agents
|
||||
ents.Sort(delegate(EntityBase a, EntityBase b)
|
||||
{
|
||||
return Vector3.Distance(AbsolutePosition, a.AbsolutePosition).CompareTo(Vector3.Distance(AbsolutePosition, b.AbsolutePosition));
|
||||
});
|
||||
}
|
||||
|
||||
foreach (EntityBase e in ents)
|
||||
if (e is SceneObjectGroup)
|
||||
|
|
Loading…
Reference in New Issue