Make the megaregion total area given to the physics module accurate instead of over-inflated.
This was previously over-inflated because adding a region to the NE of the root region resulted in double counting of regions already added. An accurate extent will also be necessary for other purposes.0.7.4.1
parent
3f2a727b6d
commit
4e5ac27928
|
@ -595,9 +595,15 @@ namespace OpenSim.Region.RegionCombinerModule
|
|||
((conn.Y * (int)Constants.RegionSize)));
|
||||
|
||||
Vector3 extents = Vector3.Zero;
|
||||
extents.Y = regionConnections.YEnd + conn.YEnd;
|
||||
extents.X = regionConnections.XEnd + conn.XEnd;
|
||||
conn.UpdateExtents(extents);
|
||||
|
||||
// We do not want to inflate the extents for regions strictly to the NE of the root region, since this
|
||||
// would double count regions strictly to the north and east that have already been added.
|
||||
// extents.Y = regionConnections.YEnd + conn.YEnd;
|
||||
// extents.X = regionConnections.XEnd + conn.XEnd;
|
||||
// conn.UpdateExtents(extents);
|
||||
|
||||
extents.Y = conn.YEnd;
|
||||
extents.X = conn.XEnd;
|
||||
|
||||
scene.BordersLocked = true;
|
||||
conn.RegionScene.BordersLocked = true;
|
||||
|
|
Loading…
Reference in New Issue