mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
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
This commit is contained in:
@@ -47,6 +47,7 @@ using OpenSim.Framework.Servers.HttpServer;
|
||||
using OpenSim.Region.CoreModules.World.Terrain;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using OpenSim.Services.Interfaces;
|
||||
|
||||
namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
{
|
||||
@@ -1421,7 +1422,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
|
||||
UICallback uic;
|
||||
IInventoryServices iserv = m_app.CommunicationsManager.InventoryService;
|
||||
IAssetCache aserv = m_app.CommunicationsManager.AssetCache;
|
||||
IAssetService aserv = m_app.SceneManager.CurrentOrFirstScene.AssetService;
|
||||
|
||||
doc.LoadXml(File.ReadAllText(dafn));
|
||||
|
||||
@@ -1437,7 +1438,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||
rass.Local = Boolean.Parse(GetStringAttribute(asset,"local",""));
|
||||
rass.Temporary = Boolean.Parse(GetStringAttribute(asset,"temporary",""));
|
||||
rass.Data = Convert.FromBase64String(asset.InnerText);
|
||||
aserv.AddAsset(rass);
|
||||
aserv.Store(rass);
|
||||
}
|
||||
|
||||
avatars = doc.GetElementsByTagName("Avatar");
|
||||
|
||||
Reference in New Issue
Block a user