mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
* um, Prim crossings? Experimental.
* Backup your database just in case.
This commit is contained in:
@@ -126,23 +126,11 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
set
|
||||
{
|
||||
LLVector3 val = value;
|
||||
if (val.X > 255.6f)
|
||||
if (val.X > 255.6f || val.X < 0.4f || val.Y > 255.6f || val.Y < 0.4f)
|
||||
{
|
||||
val.X = 255.6f;
|
||||
}
|
||||
else if (val.X < 0.4f)
|
||||
{
|
||||
val.X = 0.4f;
|
||||
}
|
||||
|
||||
if (val.Y > 255.6f)
|
||||
{
|
||||
val.Y = 255.6f;
|
||||
}
|
||||
else if (val.Y < 0.4f)
|
||||
{
|
||||
val.Y = 0.4f;
|
||||
m_scene.CrossPrimGroupIntoNewRegion(val, this);
|
||||
}
|
||||
|
||||
|
||||
lock (m_parts)
|
||||
{
|
||||
@@ -1378,6 +1366,11 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
ScheduleGroupForTerseUpdate();
|
||||
}
|
||||
|
||||
public void OffsetForNewRegion(LLVector3 offset)
|
||||
{
|
||||
m_rootPart.GroupPosition = offset;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Rotation
|
||||
|
||||
Reference in New Issue
Block a user