diff options
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs b/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs index ea5bb64..6d97251 100644 --- a/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/BakedTextures/XBakesModule.cs | |||
@@ -53,6 +53,7 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures | |||
53 | private UTF8Encoding enc = new UTF8Encoding(); | 53 | private UTF8Encoding enc = new UTF8Encoding(); |
54 | private string m_URL = String.Empty; | 54 | private string m_URL = String.Empty; |
55 | private static XmlSerializer m_serializer = new XmlSerializer(typeof(AssetBase)); | 55 | private static XmlSerializer m_serializer = new XmlSerializer(typeof(AssetBase)); |
56 | private static bool m_enabled = false; | ||
56 | 57 | ||
57 | private static IServiceAuth m_Auth; | 58 | private static IServiceAuth m_Auth; |
58 | 59 | ||
@@ -63,11 +64,19 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures | |||
63 | return; | 64 | return; |
64 | 65 | ||
65 | m_URL = config.GetString("URL", String.Empty); | 66 | m_URL = config.GetString("URL", String.Empty); |
67 | if (m_URL == String.Empty) | ||
68 | return; | ||
69 | |||
70 | m_enabled = true; | ||
71 | |||
66 | m_Auth = ServiceAuth.Create(configSource, "XBakes"); | 72 | m_Auth = ServiceAuth.Create(configSource, "XBakes"); |
67 | } | 73 | } |
68 | 74 | ||
69 | public void AddRegion(Scene scene) | 75 | public void AddRegion(Scene scene) |
70 | { | 76 | { |
77 | if (!m_enabled) | ||
78 | return; | ||
79 | |||
71 | // m_log.InfoFormat("[XBakes]: Enabled for region {0}", scene.RegionInfo.RegionName); | 80 | // m_log.InfoFormat("[XBakes]: Enabled for region {0}", scene.RegionInfo.RegionName); |
72 | m_Scene = scene; | 81 | m_Scene = scene; |
73 | 82 | ||
@@ -211,4 +220,4 @@ namespace OpenSim.Region.CoreModules.Avatar.BakedTextures | |||
211 | ); | 220 | ); |
212 | } | 221 | } |
213 | } | 222 | } |
214 | } \ No newline at end of file | 223 | } |