Hopefully fixed mantis bug #318 (exception when a prim moves across a border, for now have stopped prims moving beyond a regions area, will add sending prims from one region to another soon).

This commit is contained in:
MW
2007-08-24 12:34:00 +00:00
parent c296ad684b
commit d79b0ba269
2 changed files with 24 additions and 3 deletions

View File

@@ -83,11 +83,30 @@ namespace OpenSim.Region.Environment.Scenes
get { return m_rootPart.GroupPosition; }
set
{
LLVector3 val = value;
if (val.X > 255.6f)
{
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;
}
lock (this.m_parts)
{
foreach (SceneObjectPart part in this.m_parts.Values)
{
part.GroupPosition = value;
part.GroupPosition = val;
}
}
if (m_rootPart.PhysActor != null)