From 006c2c2e8ff93fae631af126e63b0e4c18afc76d Mon Sep 17 00:00:00 2001 From: diva Date: Sun, 24 May 2009 02:09:20 +0000 Subject: Fixes map image on link-region (HG). --- OpenSim/Region/Communications/Hypergrid/HGGridServices.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs b/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs index 7b116ca..7daeba4 100644 --- a/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs +++ b/OpenSim/Region/Communications/Hypergrid/HGGridServices.cs @@ -46,6 +46,7 @@ using OpenSim.Framework.Servers; using OpenSim.Framework.Servers.HttpServer; using OpenSim.Region.Communications.OGS1; using OpenSim.Region.Framework.Scenes; +using OpenSim.Services.Interfaces; // using OpenSim.Region.Environment.Modules.Framework; namespace OpenSim.Region.Communications.Hypergrid @@ -362,8 +363,10 @@ namespace OpenSim.Region.Communications.Hypergrid info.RegionSettings.TerrainImageID = ass.FullID; ass.Type = (int)AssetType.Texture; ass.Temporary = false; + ass.Local = true; ass.Data = imageData; - m_assetcache.AddAsset(ass); + + m_sceneman.CurrentOrFirstScene.AssetService.Store(ass); } catch // LEGIT: Catching problems caused by OpenJPEG p/invoke -- cgit v1.1