Allow megaregions to be used in M7, should we so decide
parent
d4022becc3
commit
fb89d0ff4e
|
@ -137,6 +137,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
protected SceneCommunicationService m_sceneGridService;
|
protected SceneCommunicationService m_sceneGridService;
|
||||||
public bool LoginsDisabled = true;
|
public bool LoginsDisabled = true;
|
||||||
public bool LoadingPrims = false;
|
public bool LoadingPrims = false;
|
||||||
|
public bool CombineRegions = false;
|
||||||
|
|
||||||
public new float TimeDilation
|
public new float TimeDilation
|
||||||
{
|
{
|
||||||
|
@ -768,6 +769,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
}
|
}
|
||||||
|
|
||||||
m_strictAccessControl = startupConfig.GetBoolean("StrictAccessControl", m_strictAccessControl);
|
m_strictAccessControl = startupConfig.GetBoolean("StrictAccessControl", m_strictAccessControl);
|
||||||
|
CombineRegions = startupConfig.GetBoolean("CombineContiguousRegions", false);
|
||||||
|
|
||||||
#region BinaryStats
|
#region BinaryStats
|
||||||
|
|
||||||
|
|
|
@ -282,6 +282,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// </returns>
|
/// </returns>
|
||||||
protected internal bool AddRestoredSceneObject(
|
protected internal bool AddRestoredSceneObject(
|
||||||
SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
|
SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
|
||||||
|
{
|
||||||
|
if (!m_parentScene.CombineRegions)
|
||||||
{
|
{
|
||||||
// KF: Check for out-of-region, move inside and make static.
|
// KF: Check for out-of-region, move inside and make static.
|
||||||
Vector3 npos = new Vector3(sceneObject.RootPart.GroupPosition.X,
|
Vector3 npos = new Vector3(sceneObject.RootPart.GroupPosition.X,
|
||||||
|
@ -306,6 +308,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
sceneObject.RootPart.Acceleration = Vector3.Zero;
|
sceneObject.RootPart.Acceleration = Vector3.Zero;
|
||||||
sceneObject.RootPart.Velocity = Vector3.Zero;
|
sceneObject.RootPart.Velocity = Vector3.Zero;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!alreadyPersisted)
|
if (!alreadyPersisted)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue