mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Small asset cache addition. Comment a debug output left in CAPS
This commit is contained in:
@@ -44,6 +44,8 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private bool m_Enabled = false;
|
||||
private Dictionary<Scene, IAssetService> m_AssetService =
|
||||
new Dictionary<Scene, IAssetService>();
|
||||
|
||||
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<IAssetService>();
|
||||
|
||||
if (m_AssetService[scene] != null)
|
||||
m_log.InfoFormat("[ASSET CACHE]: Enabled for region {0}",
|
||||
scene.RegionInfo.RegionName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user