From 13b2ff83df33fda14d9a8352ed19386913f3c60f Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 10 May 2009 00:30:51 +0000 Subject: Small asset cache addition. Comment a debug output left in CAPS --- OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region/CoreModules/Asset') diff --git a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs index 87f3945..17caa9b 100644 --- a/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs @@ -44,6 +44,8 @@ namespace OpenSim.Region.CoreModules.Asset MethodBase.GetCurrentMethod().DeclaringType); private bool m_Enabled = false; + private Dictionary m_AssetService = + new Dictionary(); public string Name { @@ -94,6 +96,15 @@ namespace OpenSim.Region.CoreModules.Asset public void RegionLoaded(Scene scene) { + if (!m_Enabled) + return; + + m_AssetService[scene] = + scene.RequestModuleInterface(); + + if (m_AssetService[scene] != null) + m_log.InfoFormat("[ASSET CACHE]: Enabled for region {0}", + scene.RegionInfo.RegionName); } } } -- cgit v1.1