mirror of
https://github.com/opensim/opensim.git
synced 2026-07-05 02:48:50 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user