From f948fab4dab4330d7e94f7671f752e8993ce14ea Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 11 May 2009 21:04:27 +0000 Subject: Add AssetService of type IAssetService to Scene --- OpenSim/Region/Framework/Scenes/Scene.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 72d1435..8de069a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -38,6 +38,7 @@ using Nini.Config; using OpenMetaverse; using OpenMetaverse.Imaging; using OpenSim.Framework; +using OpenSim.Services.Interfaces; using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Communications.Clients; @@ -125,6 +126,19 @@ namespace OpenSim.Region.Framework.Scenes public IXfer XferManager; + protected IAssetService m_AssetService = null; + + public IAssetService AssetService + { + get + { + if (m_AssetService == null) + m_AssetService = RequestModuleInterface(); + + return m_AssetService; + } + } + protected IXMLRPC m_xmlrpcModule; protected IWorldComm m_worldCommModule; protected IAvatarFactory m_AvatarFactory; -- cgit v1.1