diff options
Diffstat (limited to 'OpenSim/Region/Application/OpenSimBase.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index f535fe8..e148cde 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -347,9 +347,13 @@ namespace OpenSim | |||
347 | // Prims have to be loaded after module configuration since some modules may be invoked during the load | 347 | // Prims have to be loaded after module configuration since some modules may be invoked during the load |
348 | scene.LoadPrimsFromStorage(regionInfo.originRegionID); | 348 | scene.LoadPrimsFromStorage(regionInfo.originRegionID); |
349 | 349 | ||
350 | // moved these here as the terrain texture has to be created after the modules are initialized | 350 | // moved these here as the map texture has to be created after the modules are initialized |
351 | // and has to happen before the region is registered with the grid. | 351 | // and has to happen before the region is registered with the grid. |
352 | scene.CreateTerrainTexture(); | 352 | IWorldMapModule mapModule = scene.RequestModuleInterface<IWorldMapModule>(); |
353 | if (mapModule != null) | ||
354 | mapModule.GenerateMaptile(); | ||
355 | else | ||
356 | m_log.WarnFormat("[STARTUP]: No map module available to generate map tile"); | ||
353 | 357 | ||
354 | // TODO : Try setting resource for region xstats here on scene | 358 | // TODO : Try setting resource for region xstats here on scene |
355 | MainServer.Instance.AddStreamHandler(new Region.Framework.Scenes.RegionStatsHandler(regionInfo)); | 359 | MainServer.Instance.AddStreamHandler(new Region.Framework.Scenes.RegionStatsHandler(regionInfo)); |