mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Add some maptile options, change maptile generation from OpenSimBase to Scene
to make it more configurable.
This commit is contained in:
@@ -390,19 +390,6 @@ namespace OpenSim
|
||||
// Prims have to be loaded after module configuration since some modules may be invoked during the load
|
||||
scene.LoadPrimsFromStorage(regionInfo.originRegionID);
|
||||
|
||||
if (scene.SnmpService != null)
|
||||
{
|
||||
scene.SnmpService.BootInfo("Creating region texture", scene);
|
||||
}
|
||||
|
||||
// moved these here as the map texture has to be created after the modules are initialized
|
||||
// and has to happen before the region is registered with the grid.
|
||||
IWorldMapModule mapModule = scene.RequestModuleInterface<IWorldMapModule>();
|
||||
if (mapModule != null)
|
||||
mapModule.GenerateMaptile();
|
||||
else
|
||||
m_log.WarnFormat("[STARTUP]: No map module available to generate map tile");
|
||||
|
||||
// TODO : Try setting resource for region xstats here on scene
|
||||
MainServer.Instance.AddStreamHandler(new Region.Framework.Scenes.RegionStatsHandler(regionInfo));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user