mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
bug fix on ode spaces and allow more of them on large regions
This commit is contained in:
@@ -726,15 +726,15 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY);
|
||||
|
||||
// ubit: limit number of spaces
|
||||
if (spaceGridMaxX > 40)
|
||||
if (spaceGridMaxX > 100)
|
||||
{
|
||||
spaceGridMaxX = 40;
|
||||
spacesPerMeterX = WorldExtents.X / spaceGridMaxX;
|
||||
spaceGridMaxX = 100;
|
||||
spacesPerMeterX = spaceGridMaxX / WorldExtents.X ;
|
||||
}
|
||||
if (spaceGridMaxY > 40)
|
||||
if (spaceGridMaxY > 100)
|
||||
{
|
||||
spaceGridMaxY = 40;
|
||||
spacesPerMeterY = WorldExtents.X / spaceGridMaxY;
|
||||
spaceGridMaxY = 100;
|
||||
spacesPerMeterY = spaceGridMaxY / WorldExtents.Y;
|
||||
}
|
||||
|
||||
staticPrimspace = new IntPtr[spaceGridMaxX, spaceGridMaxY];
|
||||
|
||||
@@ -552,16 +552,16 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
spaceGridMaxX = (int)(WorldExtents.X * spacesPerMeterX);
|
||||
spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeterY);
|
||||
|
||||
if (spaceGridMaxX > 40)
|
||||
if (spaceGridMaxX > 100)
|
||||
{
|
||||
spaceGridMaxX = 40;
|
||||
spacesPerMeterX = WorldExtents.X / spaceGridMaxX;
|
||||
spaceGridMaxX = 100;
|
||||
spacesPerMeterX = spaceGridMaxX / WorldExtents.X ;
|
||||
}
|
||||
|
||||
if (spaceGridMaxY > 40)
|
||||
if (spaceGridMaxY > 100)
|
||||
{
|
||||
spaceGridMaxY = 40;
|
||||
spacesPerMeterY = WorldExtents.Y / spaceGridMaxY;
|
||||
spaceGridMaxY = 100;
|
||||
spacesPerMeterY = spaceGridMaxY / WorldExtents.Y ;
|
||||
}
|
||||
|
||||
staticPrimspace = new IntPtr[spaceGridMaxX, spaceGridMaxY];
|
||||
|
||||
Reference in New Issue
Block a user