aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
diff options
context:
space:
mode:
authordiva2009-05-15 05:00:25 +0000
committerdiva2009-05-15 05:00:25 +0000
commit5e4fc6e91e5edffd1dc23af4f583d6294f394a3d (patch)
tree497076db68193be2d14fc3788c1d80c74d8c977d /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
parentsome sculpted prim geometry accuracy and meshing speed improvements (diff)
downloadopensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.zip
opensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.tar.gz
opensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.tar.bz2
opensim-SC-5e4fc6e91e5edffd1dc23af4f583d6294f394a3d.tar.xz
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
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 9020ff9..d4fc2d1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3782,8 +3782,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3782 World.RegionInfo.RegionLocY * Constants.RegionSize, 3782 World.RegionInfo.RegionLocY * Constants.RegionSize,
3783 0); 3783 0);
3784 3784
3785 World.CommsManager.AssetCache.GetAsset(item.AssetID, 3785 World.AssetService.Get(item.AssetID.ToString(), this,
3786 delegate(UUID i, AssetBase a) 3786 delegate(string i, object sender, AssetBase a)
3787 { 3787 {
3788 AssetLandmark lm = new AssetLandmark(a); 3788 AssetLandmark lm = new AssetLandmark(a);
3789 3789
@@ -3795,7 +3795,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3795 AsyncCommands. 3795 AsyncCommands.
3796 DataserverPlugin.DataserverReply(i.ToString(), 3796 DataserverPlugin.DataserverReply(i.ToString(),
3797 reply); 3797 reply);
3798 }, false); 3798 });
3799 3799
3800 // ScriptSleep(1000); 3800 // ScriptSleep(1000);
3801 return tid.ToString(); 3801 return tid.ToString();
@@ -9311,7 +9311,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9311 public delegate void AssetRequestCallback(UUID assetID, AssetBase asset); 9311 public delegate void AssetRequestCallback(UUID assetID, AssetBase asset);
9312 private void WithNotecard(UUID assetID, AssetRequestCallback cb) 9312 private void WithNotecard(UUID assetID, AssetRequestCallback cb)
9313 { 9313 {
9314 World.CommsManager.AssetCache.GetAsset(assetID, delegate(UUID i, AssetBase a) { cb(i, a); }, false); 9314 World.AssetService.Get(assetID.ToString(), this,
9315 delegate(string i, object sender, AssetBase a)
9316 {
9317 UUID uuid = UUID.Zero;
9318 UUID.TryParse(i, out uuid);
9319 cb(uuid, a);
9320 });
9315 } 9321 }
9316 9322
9317 public LSL_String llGetNumberOfNotecardLines(string name) 9323 public LSL_String llGetNumberOfNotecardLines(string name)