Moved instantiation of SceneCommunicationService object to inside the scene constructor. This was a left over from the original monolithic design of scene communications. The less the instantiators of scenes know about the scene's internals, the better.

This commit is contained in:
Diva Canto
2015-08-30 15:52:26 -07:00
parent f6d79c7cbb
commit 5648eb7bd1
4 changed files with 5 additions and 10 deletions

View File

@@ -752,10 +752,8 @@ namespace OpenSim
Vector3 regionExtent = new Vector3(regionInfo.RegionSizeX, regionInfo.RegionSizeY, regionInfo.RegionSizeZ);
PhysicsScene physicsScene = GetPhysicsScene(regionInfo.RegionName, regionExtent);
SceneCommunicationService sceneGridService = new SceneCommunicationService();
return new Scene(
regionInfo, circuitManager, physicsScene, sceneGridService,
regionInfo, circuitManager, physicsScene,
simDataService, estateDataService,
Config, m_version);
}