Added a setting to [Startup] section of config that will allow the simulator to start up with no regions configured.

I added the boolean config setting "allow_regionless", defaulting to false. If set to true, opensim will start up ok if no region configurations are found in the specified region_info_source. It will not ask the user to create a region.
This commit is contained in:
Kevin Houlihan & Michelle Argus
2011-09-21 22:46:14 +01:00
committed by Justin Clark-Casey (justincc)
parent c14c4bc1ec
commit 39d7945efc
6 changed files with 73 additions and 30 deletions

View File

@@ -112,10 +112,13 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
public void PostInitialise()
{
m_textureManager = m_scene.RequestModuleInterface<IDynamicTextureManager>();
if (m_textureManager != null)
if (m_scene != null)
{
m_textureManager.RegisterRender(GetContentType(), this);
m_textureManager = m_scene.RequestModuleInterface<IDynamicTextureManager>();
if (m_textureManager != null)
{
m_textureManager.RegisterRender(GetContentType(), this);
}
}
}