mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
First commit where physics work as region module.
Moved all physics dlls out of Physics and into bin directly, so they can be found by the module loader. Removed call to PhysicsPluginManager.
This commit is contained in:
@@ -850,10 +850,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
#region Constructors
|
||||
|
||||
public Scene(RegionInfo regInfo, AgentCircuitManager authen, PhysicsScene physicsScene,
|
||||
public Scene(RegionInfo regInfo, AgentCircuitManager authen,
|
||||
ISimulationDataService simDataService, IEstateDataService estateDataService,
|
||||
IConfigSource config, string simulatorVersion)
|
||||
: this(regInfo, physicsScene)
|
||||
: this(regInfo)
|
||||
{
|
||||
m_config = config;
|
||||
MinFrameTicks = 89;
|
||||
@@ -1192,11 +1192,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
}
|
||||
|
||||
public Scene(RegionInfo regInfo, PhysicsScene physicsScene)
|
||||
public Scene(RegionInfo regInfo)
|
||||
: base(regInfo)
|
||||
{
|
||||
m_sceneGraph = new SceneGraph(this);
|
||||
m_sceneGraph.PhysicsScene = physicsScene;
|
||||
|
||||
// If the scene graph has an Unrecoverable error, restart this sim.
|
||||
// Currently the only thing that causes it to happen is two kinds of specific
|
||||
|
||||
@@ -111,7 +111,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public PhysicsScene PhysicsScene
|
||||
{
|
||||
get { return _PhyScene; }
|
||||
get
|
||||
{
|
||||
if (_PhyScene == null)
|
||||
_PhyScene = m_parentScene.RequestModuleInterface<PhysicsScene>();
|
||||
return _PhyScene;
|
||||
}
|
||||
set
|
||||
{
|
||||
// If we're not doing the initial set
|
||||
|
||||
Reference in New Issue
Block a user