aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-15 02:54:43 +0100
committerJustin Clark-Casey (justincc)2011-10-15 02:54:43 +0100
commit528cc8136e567b5bac583728fbb0235baaba2f02 (patch)
treef550fb1ff8b6a7845026e1cf6e650a6ff505e54e /OpenSim/Region/Framework/Scenes/Scene.cs
parentremove now redundant m_physical_prim flag from SOP.ApplyPhysics() (diff)
downloadopensim-SC_OLD-528cc8136e567b5bac583728fbb0235baaba2f02.zip
opensim-SC_OLD-528cc8136e567b5bac583728fbb0235baaba2f02.tar.gz
opensim-SC_OLD-528cc8136e567b5bac583728fbb0235baaba2f02.tar.bz2
opensim-SC_OLD-528cc8136e567b5bac583728fbb0235baaba2f02.tar.xz
fetch physical_prim switch from [Startup] config from inside scene, as is done for most other scene config params
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a6ffe6e..7295a38 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -73,8 +73,12 @@ namespace OpenSim.Region.Framework.Scenes
73 public List<Border> SouthBorders = new List<Border>(); 73 public List<Border> SouthBorders = new List<Border>();
74 public List<Border> WestBorders = new List<Border>(); 74 public List<Border> WestBorders = new List<Border>();
75 75
76 /// <summary>Are we applying physics to any of the prims in this scene?</summary> 76 /// <summary>
77 /// Controls whether physics can be applied to prims. Even if false, prims still have entries in a
78 /// PhysicsScene in order to perform collision detection
79 /// </summary>
77 public bool m_physicalPrim; 80 public bool m_physicalPrim;
81
78 public float m_maxNonphys = 256; 82 public float m_maxNonphys = 256;
79 public float m_maxPhys = 10; 83 public float m_maxPhys = 10;
80 public bool m_clampPrimSize; 84 public bool m_clampPrimSize;
@@ -533,7 +537,7 @@ namespace OpenSim.Region.Framework.Scenes
533 public Scene(RegionInfo regInfo, AgentCircuitManager authen, 537 public Scene(RegionInfo regInfo, AgentCircuitManager authen,
534 SceneCommunicationService sceneGridService, 538 SceneCommunicationService sceneGridService,
535 ISimulationDataService simDataService, IEstateDataService estateDataService, 539 ISimulationDataService simDataService, IEstateDataService estateDataService,
536 ModuleLoader moduleLoader, bool dumpAssetsToFile, bool physicalPrim, 540 ModuleLoader moduleLoader, bool dumpAssetsToFile,
537 bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion) 541 bool SeeIntoRegionFromNeighbor, IConfigSource config, string simulatorVersion)
538 : this(regInfo) 542 : this(regInfo)
539 { 543 {
@@ -550,8 +554,7 @@ namespace OpenSim.Region.Framework.Scenes
550 m_EstateDataService = estateDataService; 554 m_EstateDataService = estateDataService;
551 m_regionHandle = m_regInfo.RegionHandle; 555 m_regionHandle = m_regInfo.RegionHandle;
552 m_regionName = m_regInfo.RegionName; 556 m_regionName = m_regInfo.RegionName;
553 557
554 m_physicalPrim = physicalPrim;
555 m_seeIntoRegionFromNeighbor = SeeIntoRegionFromNeighbor; 558 m_seeIntoRegionFromNeighbor = SeeIntoRegionFromNeighbor;
556 559
557 m_asyncSceneObjectDeleter = new AsyncSceneObjectGroupDeleter(this); 560 m_asyncSceneObjectDeleter = new AsyncSceneObjectGroupDeleter(this);
@@ -676,6 +679,8 @@ namespace OpenSim.Region.Framework.Scenes
676 // TODO: Change default to true once the feature is supported 679 // TODO: Change default to true once the feature is supported
677 m_usePreJump = startupConfig.GetBoolean("enableprejump", false); 680 m_usePreJump = startupConfig.GetBoolean("enableprejump", false);
678 681
682 m_physicalPrim = startupConfig.GetBoolean("physical_prim", true);
683
679 m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys); 684 m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys);
680 if (RegionInfo.NonphysPrimMax > 0) 685 if (RegionInfo.NonphysPrimMax > 0)
681 { 686 {