bug fix on ode spaces and allow more of them on large regions
parent
a54e0339ef
commit
ce1c5de793
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue