diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 7263b51..26151bf 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -1712,7 +1712,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1712 | 1712 | ||
1713 | // Offset the positions for the new region across the border | 1713 | // Offset the positions for the new region across the border |
1714 | Vector3 oldGroupPosition = grp.RootPart.GroupPosition; | 1714 | Vector3 oldGroupPosition = grp.RootPart.GroupPosition; |
1715 | grp.OffsetForNewRegion(pos); | 1715 | grp.RootPart.GroupPosition = pos; |
1716 | 1716 | ||
1717 | // If we fail to cross the border, then reset the position of the scene object on that border. | 1717 | // If we fail to cross the border, then reset the position of the scene object on that border. |
1718 | uint x = 0, y = 0; | 1718 | uint x = 0, y = 0; |
@@ -1720,7 +1720,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1720 | GridRegion destination = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID, (int)x, (int)y); | 1720 | GridRegion destination = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID, (int)x, (int)y); |
1721 | if (destination != null && !CrossPrimGroupIntoNewRegion(destination, grp, silent)) | 1721 | if (destination != null && !CrossPrimGroupIntoNewRegion(destination, grp, silent)) |
1722 | { | 1722 | { |
1723 | grp.OffsetForNewRegion(oldGroupPosition); | 1723 | grp.RootPart.GroupPosition = oldGroupPosition; |
1724 | grp.ScheduleGroupForFullUpdate(); | 1724 | grp.ScheduleGroupForFullUpdate(); |
1725 | } | 1725 | } |
1726 | } | 1726 | } |