aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 8906c6f..839259f 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -135,7 +135,6 @@ namespace OpenSim.Region.Framework.Scenes
135 private Vector3 m_lastPosition; 135 private Vector3 m_lastPosition;
136 private Quaternion m_lastRotation; 136 private Quaternion m_lastRotation;
137 private Vector3 m_lastVelocity; 137 private Vector3 m_lastVelocity;
138 //private int m_lastTerseSent;
139 138
140 private Vector3? m_forceToApply; 139 private Vector3? m_forceToApply;
141 private int m_userFlags; 140 private int m_userFlags;
@@ -645,14 +644,6 @@ namespace OpenSim.Region.Framework.Scenes
645 set { m_health = value; } 644 set { m_health = value; }
646 } 645 }
647 646
648 private ISceneViewer m_sceneViewer;
649
650 public ISceneViewer SceneViewer
651 {
652 get { return m_sceneViewer; }
653 private set { m_sceneViewer = value; }
654 }
655
656 public void AdjustKnownSeeds() 647 public void AdjustKnownSeeds()
657 { 648 {
658 Dictionary<ulong, string> seeds; 649 Dictionary<ulong, string> seeds;
@@ -756,7 +747,6 @@ namespace OpenSim.Region.Framework.Scenes
756 AttachmentsSyncLock = new Object(); 747 AttachmentsSyncLock = new Object();
757 748
758 m_sendCourseLocationsMethod = SendCoarseLocationsDefault; 749 m_sendCourseLocationsMethod = SendCoarseLocationsDefault;
759 SceneViewer = new SceneViewer(this);
760 Animator = new ScenePresenceAnimator(this); 750 Animator = new ScenePresenceAnimator(this);
761 PresenceType = type; 751 PresenceType = type;
762 DrawDistance = world.DefaultDrawDistance; 752 DrawDistance = world.DefaultDrawDistance;
@@ -867,16 +857,6 @@ namespace OpenSim.Region.Framework.Scenes
867 return m_scene.Permissions.GenerateClientFlags(m_uuid, ObjectID); 857 return m_scene.Permissions.GenerateClientFlags(m_uuid, ObjectID);
868 } 858 }
869 859
870 /// <summary>
871 /// Send updates to the client about prims which have been placed on the update queue. We don't
872 /// necessarily send updates for all the parts on the queue, e.g. if an updates with a more recent
873 /// timestamp has already been sent.
874 /// </summary>
875 public void SendPrimUpdates()
876 {
877 SceneViewer.SendPrimUpdates();
878 }
879
880 #region Status Methods 860 #region Status Methods
881 861
882 /// <summary> 862 /// <summary>
@@ -2420,10 +2400,6 @@ namespace OpenSim.Region.Framework.Scenes
2420 const float ROTATION_TOLERANCE = 0.01f; 2400 const float ROTATION_TOLERANCE = 0.01f;
2421 const float VELOCITY_TOLERANCE = 0.001f; 2401 const float VELOCITY_TOLERANCE = 0.001f;
2422 const float POSITION_TOLERANCE = 0.05f; 2402 const float POSITION_TOLERANCE = 0.05f;
2423 //const int TIME_MS_TOLERANCE = 3000;
2424
2425 if (!sendingPrims)
2426 Util.FireAndForget(delegate { sendingPrims = true; SendPrimUpdates(); sendingPrims = false; });
2427 2403
2428 if (IsChildAgent == false) 2404 if (IsChildAgent == false)
2429 { 2405 {
@@ -2435,7 +2411,6 @@ namespace OpenSim.Region.Framework.Scenes
2435 if (!Rotation.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) || 2411 if (!Rotation.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) ||
2436 !Velocity.ApproxEquals(m_lastVelocity, VELOCITY_TOLERANCE) || 2412 !Velocity.ApproxEquals(m_lastVelocity, VELOCITY_TOLERANCE) ||
2437 !m_pos.ApproxEquals(m_lastPosition, POSITION_TOLERANCE)) 2413 !m_pos.ApproxEquals(m_lastPosition, POSITION_TOLERANCE))
2438 //Environment.TickCount - m_lastTerseSent > TIME_MS_TOLERANCE)
2439 { 2414 {
2440 SendTerseUpdateToAllClients(); 2415 SendTerseUpdateToAllClients();
2441 2416
@@ -2443,7 +2418,6 @@ namespace OpenSim.Region.Framework.Scenes
2443 m_lastPosition = m_pos; 2418 m_lastPosition = m_pos;
2444 m_lastRotation = Rotation; 2419 m_lastRotation = Rotation;
2445 m_lastVelocity = Velocity; 2420 m_lastVelocity = Velocity;
2446 //m_lastTerseSent = Environment.TickCount;
2447 } 2421 }
2448 2422
2449 // followed suggestion from mic bowman. reversed the two lines below. 2423 // followed suggestion from mic bowman. reversed the two lines below.
@@ -3430,8 +3404,6 @@ namespace OpenSim.Region.Framework.Scenes
3430 // unsetting the elapsed callback should be enough to allow for cleanup however. 3404 // unsetting the elapsed callback should be enough to allow for cleanup however.
3431 // m_reprioritizationTimer.Dispose(); 3405 // m_reprioritizationTimer.Dispose();
3432 3406
3433 SceneViewer.Close();
3434
3435 RemoveFromPhysicalScene(); 3407 RemoveFromPhysicalScene();
3436 Animator.Close(); 3408 Animator.Close();
3437 Animator = null; 3409 Animator = null;