diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 2fcb199..d412702 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3915,17 +3915,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
3915 | } | 3915 | } |
3916 | 3916 | ||
3917 | /// <summary> | 3917 | /// <summary> |
3918 | /// | 3918 | /// Update this part's offset position. |
3919 | /// </summary> | 3919 | /// </summary> |
3920 | /// <param name="pos"></param> | 3920 | /// <param name="pos"></param> |
3921 | public void UpdateOffSet(Vector3 pos) | 3921 | public void UpdateOffSet(Vector3 newPos) |
3922 | { | 3922 | { |
3923 | if ((pos.X != OffsetPosition.X) || | 3923 | Vector3 oldPos = OffsetPosition; |
3924 | (pos.Y != OffsetPosition.Y) || | ||
3925 | (pos.Z != OffsetPosition.Z)) | ||
3926 | { | ||
3927 | Vector3 newPos = new Vector3(pos.X, pos.Y, pos.Z); | ||
3928 | 3924 | ||
3925 | if ((newPos.X != oldPos.X) || | ||
3926 | (newPos.Y != oldPos.Y) || | ||
3927 | (newPos.Z != oldPos.Z)) | ||
3928 | { | ||
3929 | if (ParentGroup.RootPart.GetStatusSandbox()) | 3929 | if (ParentGroup.RootPart.GetStatusSandbox()) |
3930 | { | 3930 | { |
3931 | if (Util.GetDistanceTo(ParentGroup.RootPart.StatusSandboxPos, newPos) > 10) | 3931 | if (Util.GetDistanceTo(ParentGroup.RootPart.StatusSandboxPos, newPos) > 10) |