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.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index be3a39a..cdba282 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -140,6 +140,8 @@ namespace OpenSim.Region.Framework.Scenes
140 private Vector3 m_lastPosition; 140 private Vector3 m_lastPosition;
141 private Quaternion m_lastRotation; 141 private Quaternion m_lastRotation;
142 private Vector3 m_lastVelocity; 142 private Vector3 m_lastVelocity;
143 private Vector3 m_lastSize = new Vector3(0.45f,0.6f,1.9f);
144
143 145
144 private Vector3? m_forceToApply; 146 private Vector3? m_forceToApply;
145 private int m_userFlags; 147 private int m_userFlags;
@@ -2539,7 +2541,13 @@ namespace OpenSim.Region.Framework.Scenes
2539 // NOTE: Velocity is not the same as m_velocity. Velocity will attempt to 2541 // NOTE: Velocity is not the same as m_velocity. Velocity will attempt to
2540 // grab the latest PhysicsActor velocity, whereas m_velocity is often 2542 // grab the latest PhysicsActor velocity, whereas m_velocity is often
2541 // storing a requested force instead of an actual traveling velocity 2543 // storing a requested force instead of an actual traveling velocity
2542 if (!Rotation.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) || 2544 if (Appearance.AvatarSize != m_lastSize)
2545 {
2546 m_lastSize = Appearance.AvatarSize;
2547 SendAvatarDataToAllAgents();
2548 }
2549
2550 else if (!Rotation.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) ||
2543 !Velocity.ApproxEquals(m_lastVelocity, VELOCITY_TOLERANCE) || 2551 !Velocity.ApproxEquals(m_lastVelocity, VELOCITY_TOLERANCE) ||
2544 !m_pos.ApproxEquals(m_lastPosition, POSITION_TOLERANCE)) 2552 !m_pos.ApproxEquals(m_lastPosition, POSITION_TOLERANCE))
2545 { 2553 {