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.cs23
1 files changed, 8 insertions, 15 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 2917056..05b9014 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -126,23 +126,11 @@ namespace OpenSim.Region.Environment.Scenes
126 set 126 set
127 { 127 {
128 LLVector3 val = value; 128 LLVector3 val = value;
129 if (val.X > 255.6f) 129 if (val.X > 255.6f || val.X < 0.4f || val.Y > 255.6f || val.Y < 0.4f)
130 { 130 {
131 val.X = 255.6f; 131 m_scene.CrossPrimGroupIntoNewRegion(val, this);
132 }
133 else if (val.X < 0.4f)
134 {
135 val.X = 0.4f;
136 }
137
138 if (val.Y > 255.6f)
139 {
140 val.Y = 255.6f;
141 }
142 else if (val.Y < 0.4f)
143 {
144 val.Y = 0.4f;
145 } 132 }
133
146 134
147 lock (m_parts) 135 lock (m_parts)
148 { 136 {
@@ -1378,6 +1366,11 @@ namespace OpenSim.Region.Environment.Scenes
1378 ScheduleGroupForTerseUpdate(); 1366 ScheduleGroupForTerseUpdate();
1379 } 1367 }
1380 1368
1369 public void OffsetForNewRegion(LLVector3 offset)
1370 {
1371 m_rootPart.GroupPosition = offset;
1372 }
1373
1381 #endregion 1374 #endregion
1382 1375
1383 #region Rotation 1376 #region Rotation