Reverse a senseless change in the prioritizer. Why I would want avatars to render according to their camera position is beyond me.

avinationmerge
Melanie 2012-07-31 23:38:01 +02:00
parent 88d68e68c1
commit e40e1dc9e6
1 changed files with 9 additions and 3 deletions

View File

@ -212,9 +212,15 @@ namespace OpenSim.Region.Framework.Scenes
}
// Use the camera position for local agents and avatar position for remote agents
Vector3 presencePos = (presence.IsChildAgent) ?
presence.AbsolutePosition :
presence.CameraPosition;
// Why would I want that? They could be camming but I still see them at the
// avatar position, so why should I update them as if they were at their
// camera positions? Makes no sense!
// TODO: Fix this mess
//Vector3 presencePos = (presence.IsChildAgent) ?
// presence.AbsolutePosition :
// presence.CameraPosition;
Vector3 presencePos = presence.AbsolutePosition;
// Compute the distance...
double distance = Vector3.Distance(presencePos, entityPos);