aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index d18af46..5349d87 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -146,6 +146,26 @@ namespace OpenSim.Region.Framework.Scenes
146 } 146 }
147 } 147 }
148 148
149 protected IInventoryService m_InventoryService = null;
150
151 public IInventoryService InventoryService
152 {
153 get
154 {
155 if (m_InventoryService == null)
156 {
157 m_InventoryService = RequestModuleInterface<IInventoryService>();
158
159 if (m_InventoryService == null)
160 {
161 throw new Exception("No IInventoryService available.");
162 }
163 }
164
165 return m_InventoryService;
166 }
167 }
168
149 protected IXMLRPC m_xmlrpcModule; 169 protected IXMLRPC m_xmlrpcModule;
150 protected IWorldComm m_worldCommModule; 170 protected IWorldComm m_worldCommModule;
151 protected IAvatarFactory m_AvatarFactory; 171 protected IAvatarFactory m_AvatarFactory;