From 5e4fc6e91e5edffd1dc23af4f583d6294f394a3d Mon Sep 17 00:00:00 2001 From: diva Date: Fri, 15 May 2009 05:00:25 +0000 Subject: Heart surgery on asset service code bits. Affects OpenSim.ini configuration -- please see the example. Affects region servers only. This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing. Known problems: * HG asset transfers are borked for now * missing texture is missing * 3 unit tests commented out for now --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index d03fec2..713cc0e 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -252,9 +252,8 @@ namespace OpenSim.Region.Framework.Scenes m_part.ScheduleFullUpdate(); return; } - IAssetCache cache = m_part.ParentGroup.Scene.CommsManager.AssetCache; - cache.GetAsset(item.AssetID, delegate(UUID assetID, AssetBase asset) + m_part.ParentGroup.Scene.AssetService.Get(item.AssetID.ToString(), this, delegate(string id, object sender, AssetBase asset) { if (null == asset) { @@ -275,7 +274,7 @@ namespace OpenSim.Region.Framework.Scenes m_part.ParentGroup.AddActiveScriptCount(1); m_part.ScheduleFullUpdate(); } - }, false); + }); } } -- cgit v1.1