aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 397febe..25fd62f 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -4349,13 +4349,14 @@ namespace OpenSim.Region.Framework.Scenes
4349 } 4349 }
4350 } 4350 }
4351 4351
4352 public void UpdateGroupPosition(Vector3 pos) 4352 public void UpdateGroupPosition(Vector3 newPos)
4353 { 4353 {
4354 if ((pos.X != GroupPosition.X) || 4354 Vector3 oldPos = GroupPosition;
4355 (pos.Y != GroupPosition.Y) || 4355
4356 (pos.Z != GroupPosition.Z)) 4356 if ((newPos.X != oldPos.X) ||
4357 (newPos.Y != oldPos.Y) ||
4358 (newPos.Z != oldPos.Z))
4357 { 4359 {
4358 Vector3 newPos = new Vector3(pos.X, pos.Y, pos.Z);
4359 GroupPosition = newPos; 4360 GroupPosition = newPos;
4360 ScheduleTerseUpdate(); 4361 ScheduleTerseUpdate();
4361 } 4362 }