diff options
author | Melanie | 2011-12-14 08:57:55 +0000 |
---|---|---|
committer | Melanie | 2011-12-14 08:57:55 +0000 |
commit | 898549d13e94643afe45ce12f33351abd70d5333 (patch) | |
tree | be293f849a7c82442435048d565622fae4d69980 /OpenSim/Region/Framework/Scenes | |
parent | Spin off terrain save into a new thread and make it so that it uses the old (diff) | |
parent | Just adding a comment to SendFullUpdatToClient (diff) | |
download | opensim-SC_OLD-898549d13e94643afe45ce12f33351abd70d5333.zip opensim-SC_OLD-898549d13e94643afe45ce12f33351abd70d5333.tar.gz opensim-SC_OLD-898549d13e94643afe45ce12f33351abd70d5333.tar.bz2 opensim-SC_OLD-898549d13e94643afe45ce12f33351abd70d5333.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 14 |
2 files changed, 5 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index cf2161a..67eafd5 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1724,6 +1724,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1724 | 1724 | ||
1725 | #endregion | 1725 | #endregion |
1726 | 1726 | ||
1727 | // Send the parts of this SOG to a single client | ||
1728 | // Used when the client initially connects and when client sends RequestPrim packet | ||
1727 | public void SendFullUpdateToClient(IClientAPI remoteClient) | 1729 | public void SendFullUpdateToClient(IClientAPI remoteClient) |
1728 | { | 1730 | { |
1729 | RootPart.SendFullUpdate( | 1731 | RootPart.SendFullUpdate( |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 428fe1c..666ce2a 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -269,8 +269,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
269 | 269 | ||
270 | private bool m_passTouches; | 270 | private bool m_passTouches; |
271 | 271 | ||
272 | private UpdateRequired m_updateFlag; | ||
273 | |||
274 | private PhysicsActor m_physActor; | 272 | private PhysicsActor m_physActor; |
275 | protected Vector3 m_acceleration; | 273 | protected Vector3 m_acceleration; |
276 | protected Vector3 m_angularVelocity; | 274 | protected Vector3 m_angularVelocity; |
@@ -1035,11 +1033,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1035 | } | 1033 | } |
1036 | } | 1034 | } |
1037 | 1035 | ||
1038 | public UpdateRequired UpdateFlag | 1036 | public UpdateRequired UpdateFlag { get; set; } |
1039 | { | ||
1040 | get { return m_updateFlag; } | ||
1041 | set { m_updateFlag = value; } | ||
1042 | } | ||
1043 | 1037 | ||
1044 | /// <summary> | 1038 | /// <summary> |
1045 | /// Used for media on a prim. | 1039 | /// Used for media on a prim. |
@@ -2999,6 +2993,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2999 | { | 2993 | { |
3000 | case UpdateRequired.TERSE: | 2994 | case UpdateRequired.TERSE: |
3001 | { | 2995 | { |
2996 | ClearUpdateSchedule(); | ||
3002 | // Throw away duplicate or insignificant updates | 2997 | // Throw away duplicate or insignificant updates |
3003 | if (!RotationOffset.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) || | 2998 | if (!RotationOffset.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) || |
3004 | !Acceleration.Equals(m_lastAcceleration) || | 2999 | !Acceleration.Equals(m_lastAcceleration) || |
@@ -3008,9 +3003,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3008 | !OffsetPosition.ApproxEquals(m_lastPosition, POSITION_TOLERANCE) || | 3003 | !OffsetPosition.ApproxEquals(m_lastPosition, POSITION_TOLERANCE) || |
3009 | Environment.TickCount - m_lastTerseSent > TIME_MS_TOLERANCE) | 3004 | Environment.TickCount - m_lastTerseSent > TIME_MS_TOLERANCE) |
3010 | { | 3005 | { |
3011 | |||
3012 | SendTerseUpdateToAllClients(); | 3006 | SendTerseUpdateToAllClients(); |
3013 | ClearUpdateSchedule(); | ||
3014 | 3007 | ||
3015 | // Update the "last" values | 3008 | // Update the "last" values |
3016 | m_lastPosition = OffsetPosition; | 3009 | m_lastPosition = OffsetPosition; |
@@ -3024,12 +3017,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
3024 | } | 3017 | } |
3025 | case UpdateRequired.FULL: | 3018 | case UpdateRequired.FULL: |
3026 | { | 3019 | { |
3020 | ClearUpdateSchedule(); | ||
3027 | SendFullUpdateToAllClients(); | 3021 | SendFullUpdateToAllClients(); |
3028 | break; | 3022 | break; |
3029 | } | 3023 | } |
3030 | } | 3024 | } |
3031 | |||
3032 | ClearUpdateSchedule(); | ||
3033 | } | 3025 | } |
3034 | 3026 | ||
3035 | /// <summary> | 3027 | /// <summary> |