aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs23
1 files changed, 12 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 52e03b2..05edd20 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -42,12 +42,11 @@ using OpenMetaverse.Imaging;
42using OpenSim.Framework; 42using OpenSim.Framework;
43using OpenSim.Framework.Monitoring; 43using OpenSim.Framework.Monitoring;
44using OpenSim.Services.Interfaces; 44using OpenSim.Services.Interfaces;
45using OpenSim.Framework.Communications;
46using OpenSim.Framework.Console; 45using OpenSim.Framework.Console;
47using OpenSim.Region.Framework.Interfaces; 46using OpenSim.Region.Framework.Interfaces;
48using OpenSim.Region.Framework.Scenes.Scripting; 47using OpenSim.Region.Framework.Scenes.Scripting;
49using OpenSim.Region.Framework.Scenes.Serialization; 48using OpenSim.Region.Framework.Scenes.Serialization;
50using OpenSim.Region.Physics.Manager; 49using OpenSim.Region.PhysicsModules.SharedBase;
51using Timer = System.Timers.Timer; 50using Timer = System.Timers.Timer;
52using TPFlags = OpenSim.Framework.Constants.TeleportFlags; 51using TPFlags = OpenSim.Framework.Constants.TeleportFlags;
53using GridRegion = OpenSim.Services.Interfaces.GridRegion; 52using GridRegion = OpenSim.Services.Interfaces.GridRegion;
@@ -855,11 +854,10 @@ namespace OpenSim.Region.Framework.Scenes
855 854
856 #region Constructors 855 #region Constructors
857 856
858 public Scene(RegionInfo regInfo, AgentCircuitManager authen, PhysicsScene physicsScene, 857 public Scene(RegionInfo regInfo, AgentCircuitManager authen,
859 SceneCommunicationService sceneGridService,
860 ISimulationDataService simDataService, IEstateDataService estateDataService, 858 ISimulationDataService simDataService, IEstateDataService estateDataService,
861 IConfigSource config, string simulatorVersion) 859 IConfigSource config, string simulatorVersion)
862 : this(regInfo, physicsScene) 860 : this(regInfo)
863 { 861 {
864 m_config = config; 862 m_config = config;
865 MinFrameTime = 0.089f; 863 MinFrameTime = 0.089f;
@@ -870,7 +868,7 @@ namespace OpenSim.Region.Framework.Scenes
870 868
871 m_lastAllocatedLocalId = (uint)(random.NextDouble() * (double)(uint.MaxValue / 2)) + (uint)(uint.MaxValue / 4); 869 m_lastAllocatedLocalId = (uint)(random.NextDouble() * (double)(uint.MaxValue / 2)) + (uint)(uint.MaxValue / 4);
872 m_authenticateHandler = authen; 870 m_authenticateHandler = authen;
873 m_sceneGridService = sceneGridService; 871 m_sceneGridService = new SceneCommunicationService();
874 m_SimulationDataService = simDataService; 872 m_SimulationDataService = simDataService;
875 m_EstateDataService = estateDataService; 873 m_EstateDataService = estateDataService;
876 874
@@ -1088,11 +1086,11 @@ namespace OpenSim.Region.Framework.Scenes
1088 } 1086 }
1089 } 1087 }
1090 1088
1091 string[] possibleAccessControlConfigSections = new string[] { "AccessControl", "Startup" }; 1089 string[] possibleAccessControlConfigSections = new string[] { "Startup", "AccessControl"};
1092 1090
1093 string grant 1091 string grant
1094 = Util.GetConfigVarFromSections<string>( 1092 = Util.GetConfigVarFromSections<string>(
1095 config, "AllowedClients", possibleAccessControlConfigSections, ""); 1093 config, "AllowedClients", possibleAccessControlConfigSections, string.Empty);
1096 1094
1097 if (grant.Length > 0) 1095 if (grant.Length > 0)
1098 { 1096 {
@@ -1104,7 +1102,11 @@ namespace OpenSim.Region.Framework.Scenes
1104 1102
1105 grant 1103 grant
1106 = Util.GetConfigVarFromSections<string>( 1104 = Util.GetConfigVarFromSections<string>(
1107 config, "BannedClients", possibleAccessControlConfigSections, ""); 1105 config, "DeniedClients", possibleAccessControlConfigSections, String.Empty);
1106 // Deal with the mess of someone having used a different word at some point
1107 if (grant == String.Empty)
1108 grant = Util.GetConfigVarFromSections<string>(
1109 config, "BannedClients", possibleAccessControlConfigSections, String.Empty);
1108 1110
1109 if (grant.Length > 0) 1111 if (grant.Length > 0)
1110 { 1112 {
@@ -1201,11 +1203,10 @@ namespace OpenSim.Region.Framework.Scenes
1201 MainConsole.Instance.Commands.AddCommand("scene", false, "gc collect", "gc collect", "gc collect", "Cause the garbage collector to make a single pass", HandleGcCollect); 1203 MainConsole.Instance.Commands.AddCommand("scene", false, "gc collect", "gc collect", "gc collect", "Cause the garbage collector to make a single pass", HandleGcCollect);
1202 } 1204 }
1203 1205
1204 public Scene(RegionInfo regInfo, PhysicsScene physicsScene) 1206 public Scene(RegionInfo regInfo)
1205 : base(regInfo) 1207 : base(regInfo)
1206 { 1208 {
1207 m_sceneGraph = new SceneGraph(this); 1209 m_sceneGraph = new SceneGraph(this);
1208 m_sceneGraph.PhysicsScene = physicsScene;
1209 1210
1210 // If the scene graph has an Unrecoverable error, restart this sim. 1211 // If the scene graph has an Unrecoverable error, restart this sim.
1211 // Currently the only thing that causes it to happen is two kinds of specific 1212 // Currently the only thing that causes it to happen is two kinds of specific