diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 3a40196..1c276fa 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -130,6 +130,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
130 | private bool m_updateflag; | 130 | private bool m_updateflag; |
131 | private byte m_movementflag; | 131 | private byte m_movementflag; |
132 | private Vector3? m_forceToApply; | 132 | private Vector3? m_forceToApply; |
133 | private TeleportFlags m_teleportFlags; | ||
134 | public TeleportFlags TeleportFlags | ||
135 | { | ||
136 | get { return m_teleportFlags; } | ||
137 | set { m_teleportFlags = value; } | ||
138 | } | ||
139 | |||
133 | private uint m_requestedSitTargetID; | 140 | private uint m_requestedSitTargetID; |
134 | private UUID m_requestedSitTargetUUID; | 141 | private UUID m_requestedSitTargetUUID; |
135 | public bool SitGround = false; | 142 | public bool SitGround = false; |
@@ -928,10 +935,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
928 | //else | 935 | //else |
929 | // m_log.ErrorFormat("[SCENE]: Could not find user info for {0} when making it a root agent", m_uuid); | 936 | // m_log.ErrorFormat("[SCENE]: Could not find user info for {0} when making it a root agent", m_uuid); |
930 | 937 | ||
931 | // On the next prim update, all objects will be sent | ||
932 | // | ||
933 | m_sceneViewer.Reset(); | ||
934 | |||
935 | m_isChildAgent = false; | 938 | m_isChildAgent = false; |
936 | 939 | ||
937 | // send the animations of the other presences to me | 940 | // send the animations of the other presences to me |
@@ -953,6 +956,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
953 | /// </summary> | 956 | /// </summary> |
954 | public void MakeChildAgent() | 957 | public void MakeChildAgent() |
955 | { | 958 | { |
959 | // Reset these so that teleporting in and walking out isn't seen | ||
960 | // as teleporting back | ||
961 | m_teleportFlags = TeleportFlags.Default; | ||
962 | |||
956 | // It looks like m_animator is set to null somewhere, and MakeChild | 963 | // It looks like m_animator is set to null somewhere, and MakeChild |
957 | // is called after that. Probably in aborted teleports. | 964 | // is called after that. Probably in aborted teleports. |
958 | if (m_animator == null) | 965 | if (m_animator == null) |
@@ -1108,7 +1115,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1108 | /// </summary> | 1115 | /// </summary> |
1109 | public void CompleteMovement(IClientAPI client) | 1116 | public void CompleteMovement(IClientAPI client) |
1110 | { | 1117 | { |
1111 | DateTime startTime = DateTime.Now; | 1118 | // DateTime startTime = DateTime.Now; |
1112 | 1119 | ||
1113 | m_log.DebugFormat( | 1120 | m_log.DebugFormat( |
1114 | "[SCENE PRESENCE]: Completing movement of {0} into region {1}", | 1121 | "[SCENE PRESENCE]: Completing movement of {0} into region {1}", |
@@ -1161,9 +1168,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1161 | friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); | 1168 | friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); |
1162 | } | 1169 | } |
1163 | 1170 | ||
1164 | m_log.DebugFormat( | 1171 | // m_log.DebugFormat( |
1165 | "[SCENE PRESENCE]: Completing movement of {0} into region {1} took {2}ms", | 1172 | // "[SCENE PRESENCE]: Completing movement of {0} into region {1} took {2}ms", |
1166 | client.Name, Scene.RegionInfo.RegionName, (DateTime.Now - startTime).Milliseconds); | 1173 | // client.Name, Scene.RegionInfo.RegionName, (DateTime.Now - startTime).Milliseconds); |
1167 | } | 1174 | } |
1168 | 1175 | ||
1169 | /// <summary> | 1176 | /// <summary> |
@@ -2952,10 +2959,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2952 | if ((cAgentData.Throttles != null) && cAgentData.Throttles.Length > 0) | 2959 | if ((cAgentData.Throttles != null) && cAgentData.Throttles.Length > 0) |
2953 | ControllingClient.SetChildAgentThrottle(cAgentData.Throttles); | 2960 | ControllingClient.SetChildAgentThrottle(cAgentData.Throttles); |
2954 | 2961 | ||
2955 | // Sends out the objects in the user's draw distance if m_sendTasksToChild is true. | ||
2956 | if (m_scene.m_seeIntoRegionFromNeighbor) | ||
2957 | m_sceneViewer.Reset(); | ||
2958 | |||
2959 | //cAgentData.AVHeight; | 2962 | //cAgentData.AVHeight; |
2960 | m_rootRegionHandle = cAgentData.RegionHandle; | 2963 | m_rootRegionHandle = cAgentData.RegionHandle; |
2961 | //m_velocity = cAgentData.Velocity; | 2964 | //m_velocity = cAgentData.Velocity; |