diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Asset/CoreAssetCache.cs | 11 |
1 files changed, 11 insertions, 0 deletions
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 | |||
44 | MethodBase.GetCurrentMethod().DeclaringType); | 44 | MethodBase.GetCurrentMethod().DeclaringType); |
45 | 45 | ||
46 | private bool m_Enabled = false; | 46 | private bool m_Enabled = false; |
47 | private Dictionary<Scene, IAssetService> m_AssetService = | ||
48 | new Dictionary<Scene, IAssetService>(); | ||
47 | 49 | ||
48 | public string Name | 50 | public string Name |
49 | { | 51 | { |
@@ -94,6 +96,15 @@ namespace OpenSim.Region.CoreModules.Asset | |||
94 | 96 | ||
95 | public void RegionLoaded(Scene scene) | 97 | public void RegionLoaded(Scene scene) |
96 | { | 98 | { |
99 | if (!m_Enabled) | ||
100 | return; | ||
101 | |||
102 | m_AssetService[scene] = | ||
103 | scene.RequestModuleInterface<IAssetService>(); | ||
104 | |||
105 | if (m_AssetService[scene] != null) | ||
106 | m_log.InfoFormat("[ASSET CACHE]: Enabled for region {0}", | ||
107 | scene.RegionInfo.RegionName); | ||
97 | } | 108 | } |
98 | } | 109 | } |
99 | } | 110 | } |