Add some maptile options, change maptile generation from OpenSimBase to Scene

to make it more configurable.
This commit is contained in:
Melanie Thielker
2010-08-20 08:46:46 +02:00
parent 1ab631f015
commit 47838e5fb3
3 changed files with 59 additions and 21 deletions

View File

@@ -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));