diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 3e1439d..7493368 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1312,13 +1312,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1312 | part.ClearUndoState(); | 1312 | part.ClearUndoState(); |
1313 | } | 1313 | } |
1314 | 1314 | ||
1315 | public override void UpdateMovement() | ||
1316 | { | ||
1317 | SceneObjectPart[] parts = m_parts.GetArray(); | ||
1318 | for (int i = 0; i < parts.Length; i++) | ||
1319 | parts[i].UpdateMovement(); | ||
1320 | } | ||
1321 | |||
1322 | public ushort GetTimeDilation() | 1315 | public ushort GetTimeDilation() |
1323 | { | 1316 | { |
1324 | return Utils.FloatToUInt16(m_scene.TimeDilation, 0.0f, 1.0f); | 1317 | return Utils.FloatToUInt16(m_scene.TimeDilation, 0.0f, 1.0f); |
@@ -1486,7 +1479,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1486 | avatar.StandUp(); | 1479 | avatar.StandUp(); |
1487 | 1480 | ||
1488 | if (!silent) | 1481 | if (!silent) |
1482 | { | ||
1489 | part.UpdateFlag = 0; | 1483 | part.UpdateFlag = 0; |
1484 | if (part == m_rootPart) | ||
1485 | { | ||
1486 | if (!IsAttachment || (AttachedAvatar == avatar.ControllingClient.AgentId) || | ||
1487 | (AttachmentPoint < 31) || (AttachmentPoint > 38)) | ||
1488 | avatar.ControllingClient.SendKillObject(m_regionHandle, new List<uint>() {part.LocalId}); | ||
1489 | } | ||
1490 | } | ||
1490 | }); | 1491 | }); |
1491 | } | 1492 | } |
1492 | 1493 | ||
@@ -1939,7 +1940,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1939 | ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar); | 1940 | ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar); |
1940 | if (avatar != null) | 1941 | if (avatar != null) |
1941 | { | 1942 | { |
1942 | avatar.MoveToTarget(target, false); | 1943 | avatar.MoveToTarget(target, false, false); |
1943 | } | 1944 | } |
1944 | } | 1945 | } |
1945 | else | 1946 | else |
@@ -2104,8 +2105,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2104 | 2105 | ||
2105 | #endregion | 2106 | #endregion |
2106 | 2107 | ||
2107 | #region Scheduling | ||
2108 | |||
2109 | public override void Update() | 2108 | public override void Update() |
2110 | { | 2109 | { |
2111 | // Check that the group was not deleted before the scheduled update | 2110 | // Check that the group was not deleted before the scheduled update |
@@ -2256,7 +2255,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
2256 | parts[i].SendTerseUpdateToAllClients(); | 2255 | parts[i].SendTerseUpdateToAllClients(); |
2257 | } | 2256 | } |
2258 | 2257 | ||
2259 | #endregion | 2258 | /// <summary> |
2259 | /// Send metadata about the root prim (name, description, sale price, etc.) to a client. | ||
2260 | /// </summary> | ||
2261 | /// <param name="client"></param> | ||
2262 | public void SendPropertiesToClient(IClientAPI client) | ||
2263 | { | ||
2264 | m_rootPart.SendPropertiesToClient(client); | ||
2265 | } | ||
2260 | 2266 | ||
2261 | #region SceneGroupPart Methods | 2267 | #region SceneGroupPart Methods |
2262 | 2268 | ||
@@ -2752,15 +2758,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2752 | } | 2758 | } |
2753 | 2759 | ||
2754 | /// <summary> | 2760 | /// <summary> |
2755 | /// Return metadata about a prim (name, description, sale price, etc.) | ||
2756 | /// </summary> | ||
2757 | /// <param name="client"></param> | ||
2758 | public void GetProperties(IClientAPI client) | ||
2759 | { | ||
2760 | m_rootPart.GetProperties(client); | ||
2761 | } | ||
2762 | |||
2763 | /// <summary> | ||
2764 | /// Set the name of a prim | 2761 | /// Set the name of a prim |
2765 | /// </summary> | 2762 | /// </summary> |
2766 | /// <param name="name"></param> | 2763 | /// <param name="name"></param> |