diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs index f169117..3eedf49 100644 --- a/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/DynamicTexture/DynamicTextureModule.cs | |||
@@ -283,6 +283,10 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture | |||
283 | 283 | ||
284 | public void Initialise(Scene scene, IConfigSource config) | 284 | public void Initialise(Scene scene, IConfigSource config) |
285 | { | 285 | { |
286 | IConfig texturesConfig = config.Configs["Textures"]; | ||
287 | if (texturesConfig != null) | ||
288 | ReuseTextures = texturesConfig.GetBoolean("ReuseDynamicTextures", false); | ||
289 | |||
286 | if (!RegisteredScenes.ContainsKey(scene.RegionInfo.RegionID)) | 290 | if (!RegisteredScenes.ContainsKey(scene.RegionInfo.RegionID)) |
287 | { | 291 | { |
288 | RegisteredScenes.Add(scene.RegionInfo.RegionID, scene); | 292 | RegisteredScenes.Add(scene.RegionInfo.RegionID, scene); |
@@ -292,7 +296,6 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture | |||
292 | 296 | ||
293 | public void PostInitialise() | 297 | public void PostInitialise() |
294 | { | 298 | { |
295 | // ReuseTextures = true; | ||
296 | if (ReuseTextures) | 299 | if (ReuseTextures) |
297 | { | 300 | { |
298 | m_reuseableDynamicTextures = new Cache(CacheMedium.Memory, CacheStrategy.Conservative); | 301 | m_reuseableDynamicTextures = new Cache(CacheMedium.Memory, CacheStrategy.Conservative); |