aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-11 01:43:54 +0000
committerTeravus Ovares2008-02-11 01:43:54 +0000
commita56664cf5910876b8ab7ca175bdb88918ec15280 (patch)
tree15dc2b901d24968170890c9c68db5f16d47149b4 /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
parentstate_entry is now executed on state change. (diff)
downloadopensim-SC_OLD-a56664cf5910876b8ab7ca175bdb88918ec15280.zip
opensim-SC_OLD-a56664cf5910876b8ab7ca175bdb88918ec15280.tar.gz
opensim-SC_OLD-a56664cf5910876b8ab7ca175bdb88918ec15280.tar.bz2
opensim-SC_OLD-a56664cf5910876b8ab7ca175bdb88918ec15280.tar.xz
* um, Prim crossings? Experimental.
* Backup your database just in case.
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