Add WorldMapModule = "name" to OpenSim.ini. Default is "WorldMap".
parent
c3f66be405
commit
c009da3508
|
@ -60,6 +60,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
||||||
private List<MapBlockData> cachedMapBlocks = new List<MapBlockData>();
|
private List<MapBlockData> cachedMapBlocks = new List<MapBlockData>();
|
||||||
private int cachedTime = 0;
|
private int cachedTime = 0;
|
||||||
private byte[] myMapImageJPEG;
|
private byte[] myMapImageJPEG;
|
||||||
|
private bool m_Enabled = false;
|
||||||
|
|
||||||
//private int CacheRegionsDistance = 256;
|
//private int CacheRegionsDistance = 256;
|
||||||
|
|
||||||
|
@ -67,6 +68,14 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap
|
||||||
|
|
||||||
public void Initialise(Scene scene, IConfigSource config)
|
public void Initialise(Scene scene, IConfigSource config)
|
||||||
{
|
{
|
||||||
|
IConfig startupConfig = config.Configs["Startup"];
|
||||||
|
if (startupConfig.GetString("worldMapModule", "WorldMap") ==
|
||||||
|
"WorldMap")
|
||||||
|
m_Enabled = true;
|
||||||
|
|
||||||
|
if (!m_Enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
myMapImageJPEG = new byte[0];
|
myMapImageJPEG = new byte[0];
|
||||||
|
|
||||||
m_scene = scene;
|
m_scene = scene;
|
||||||
|
|
Loading…
Reference in New Issue