From e40e1dc9e6739aa927ae0e752bd9d6d9de714ca5 Mon Sep 17 00:00:00 2001 From: Melanie Date: Tue, 31 Jul 2012 23:38:01 +0200 Subject: Reverse a senseless change in the prioritizer. Why I would want avatars to render according to their camera position is beyond me. --- OpenSim/Region/Framework/Scenes/Prioritizer.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/Prioritizer.cs') diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs index 0a34a4c..ddae073 100644 --- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs +++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs @@ -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); -- cgit v1.1