From f948fab4dab4330d7e94f7671f752e8993ce14ea Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 11 May 2009 21:04:27 +0000 Subject: [PATCH] Add AssetService of type IAssetService to Scene --- OpenSim/Region/Framework/Scenes/Scene.cs | 14 ++++++++++++++ prebuild.xml | 1 + 2 files changed, 15 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 72d14354b3..8de069a99c 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; diff --git a/prebuild.xml b/prebuild.xml index 85f270282f..7b6c3fc8b9 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -655,6 +655,7 @@ +