diff options
author | Robert Adams | 2015-09-08 04:54:16 -0700 |
---|---|---|
committer | Robert Adams | 2015-09-08 04:54:16 -0700 |
commit | e5367d822be9b05e74c859afe2d2956a3e95aa33 (patch) | |
tree | e904050a30715df587aa527d7f313755177726a7 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | add lost admin_reset_land method (diff) | |
parent | Deleted access control spec from [LoginService] section of standalone config.... (diff) | |
download | opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.zip opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.gz opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.bz2 opensim-SC-e5367d822be9b05e74c859afe2d2956a3e95aa33.tar.xz |
Merge of ubitworkvarnew with opensim/master as of 20150905.
This integrates the OpenSim refactoring to make physics, etc into modules.
AVN physics hasn't been moved to new location.
Does not compile yet.
Merge branch 'osmaster' into mbworknew1
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 52e03b2..05edd20 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 |