mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* refactor: remove AssetCache field hanging off Scene
* This is always available at Scene.CommsManager.AssetCache
This commit is contained in:
@@ -3549,7 +3549,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
World.RegionInfo.RegionLocY * Constants.RegionSize,
|
||||
0);
|
||||
|
||||
World.AssetCache.GetAsset(item.AssetID,
|
||||
World.CommsManager.AssetCache.GetAsset(item.AssetID,
|
||||
delegate(UUID i, AssetBase a)
|
||||
{
|
||||
AssetLandmark lm = new AssetLandmark(a);
|
||||
@@ -8851,7 +8851,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
public delegate void AssetRequestCallback(UUID assetID, AssetBase asset);
|
||||
private void WithNotecard(UUID assetID, AssetRequestCallback cb)
|
||||
{
|
||||
World.AssetCache.GetAsset(assetID, delegate(UUID i, AssetBase a) { cb(i, a); }, false);
|
||||
World.CommsManager.AssetCache.GetAsset(assetID, delegate(UUID i, AssetBase a) { cb(i, a); }, false);
|
||||
}
|
||||
|
||||
public LSL_String llGetNumberOfNotecardLines(string name)
|
||||
|
||||
@@ -1040,7 +1040,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
+ textLength.ToString() + "\n" + notecardData + "}\n";
|
||||
|
||||
asset.Data = Encoding.ASCII.GetBytes(notecardData);
|
||||
World.AssetCache.AddAsset(asset);
|
||||
World.CommsManager.AssetCache.AddAsset(asset);
|
||||
|
||||
// Create Task Entry
|
||||
TaskInventoryItem taskItem=new TaskInventoryItem();
|
||||
|
||||
Reference in New Issue
Block a user