aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs17
1 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 1b55a49..8038a83 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -972,9 +972,11 @@ namespace OpenSim.Region.Environment.Scenes
972 /// <param name="remoteClient"></param> 972 /// <param name="remoteClient"></param>
973 public void GrabMovement(LLVector3 offset, LLVector3 pos, IClientAPI remoteClient) 973 public void GrabMovement(LLVector3 offset, LLVector3 pos, IClientAPI remoteClient)
974 { 974 {
975 AbsolutePosition = pos; 975 if (m_scene.EventManager.TriggerGroupMove(UUID, pos))
976 m_rootPart.SendTerseUpdateToAllClients(); 976 {
977 m_scene.EventManager.TriggerGroupMove(UUID, pos); 977 AbsolutePosition = pos;
978 m_rootPart.SendTerseUpdateToAllClients();
979 }
978 } 980 }
979 981
980 /// <summary> 982 /// <summary>
@@ -1263,10 +1265,11 @@ namespace OpenSim.Region.Environment.Scenes
1263 /// <param name="pos"></param> 1265 /// <param name="pos"></param>
1264 public void UpdateGroupPosition(LLVector3 pos) 1266 public void UpdateGroupPosition(LLVector3 pos)
1265 { 1267 {
1266 AbsolutePosition = pos; 1268 if (m_scene.EventManager.TriggerGroupMove(UUID, pos))
1267 ScheduleGroupForTerseUpdate(); 1269 {
1268 1270 AbsolutePosition = pos;
1269 m_scene.EventManager.TriggerGroupMove(UUID, pos); 1271 ScheduleGroupForTerseUpdate();
1272 }
1270 } 1273 }
1271 1274
1272 /// <summary> 1275 /// <summary>