diff options
author | UbitUmarov | 2015-09-08 15:03:22 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-08 15:03:22 +0100 |
commit | 5b3e2ab9aaf98892f18f733a3c5de816662be42a (patch) | |
tree | 03077685e44648264523e1851cd068d51a507e81 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | add script events per sec stat, using the time report code, but ignoring the... (diff) | |
parent | More 'everything is a module' merging. (diff) | |
download | opensim-SC-5b3e2ab9aaf98892f18f733a3c5de816662be42a.zip opensim-SC-5b3e2ab9aaf98892f18f733a3c5de816662be42a.tar.gz opensim-SC-5b3e2ab9aaf98892f18f733a3c5de816662be42a.tar.bz2 opensim-SC-5b3e2ab9aaf98892f18f733a3c5de816662be42a.tar.xz |
Merge branch 'mbworknew1' into ubitworkvarnew
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 1b26cc3..1b90af4 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -42,12 +42,11 @@ using OpenMetaverse.Imaging; | |||
42 | using OpenSim.Framework; | 42 | using OpenSim.Framework; |
43 | using OpenSim.Framework.Monitoring; | 43 | using OpenSim.Framework.Monitoring; |
44 | using OpenSim.Services.Interfaces; | 44 | using OpenSim.Services.Interfaces; |
45 | using OpenSim.Framework.Communications; | ||
46 | using OpenSim.Framework.Console; | 45 | using OpenSim.Framework.Console; |
47 | using OpenSim.Region.Framework.Interfaces; | 46 | using OpenSim.Region.Framework.Interfaces; |
48 | using OpenSim.Region.Framework.Scenes.Scripting; | 47 | using OpenSim.Region.Framework.Scenes.Scripting; |
49 | using OpenSim.Region.Framework.Scenes.Serialization; | 48 | using OpenSim.Region.Framework.Scenes.Serialization; |
50 | using OpenSim.Region.Physics.Manager; | 49 | using OpenSim.Region.PhysicsModules.SharedBase; |
51 | using Timer = System.Timers.Timer; | 50 | using Timer = System.Timers.Timer; |
52 | using TPFlags = OpenSim.Framework.Constants.TeleportFlags; | 51 | using TPFlags = OpenSim.Framework.Constants.TeleportFlags; |
53 | using GridRegion = OpenSim.Services.Interfaces.GridRegion; | 52 | using 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 |