mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Make it possible to disable the bakes module in the way it is described in config comments
This commit is contained in:
@@ -53,6 +53,7 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures
|
||||
private UTF8Encoding enc = new UTF8Encoding();
|
||||
private string m_URL = String.Empty;
|
||||
private static XmlSerializer m_serializer = new XmlSerializer(typeof(AssetBase));
|
||||
private static bool m_enabled = false;
|
||||
|
||||
private static IServiceAuth m_Auth;
|
||||
|
||||
@@ -63,11 +64,19 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures
|
||||
return;
|
||||
|
||||
m_URL = config.GetString("URL", String.Empty);
|
||||
if (m_URL == String.Empty)
|
||||
return;
|
||||
|
||||
m_enabled = true;
|
||||
|
||||
m_Auth = ServiceAuth.Create(configSource, "XBakes");
|
||||
}
|
||||
|
||||
public void AddRegion(Scene scene)
|
||||
{
|
||||
if (!m_enabled)
|
||||
return;
|
||||
|
||||
// m_log.InfoFormat("[XBakes]: Enabled for region {0}", scene.RegionInfo.RegionName);
|
||||
m_Scene = scene;
|
||||
|
||||
@@ -211,4 +220,4 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user