Allow OpenSim to run without script engines enabled

Fixes Mantis #3893
trunk
Melanie Thielker 2009-07-16 08:45:52 +00:00
parent 8e1ab33ed3
commit b79e23dc5c
1 changed files with 5 additions and 0 deletions

View File

@ -862,6 +862,8 @@ namespace OpenSim.Region.Framework.Scenes
IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
List<string> ret = new List<string>();
if (engines == null) // No engine at all
return new string[0];
foreach (TaskInventoryItem item in m_items.Values)
{
@ -885,7 +887,10 @@ namespace OpenSim.Region.Framework.Scenes
public Dictionary<UUID, string> GetScriptStates()
{
IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
Dictionary<UUID, string> ret = new Dictionary<UUID, string>();
if (engines == null) // No engine at all
return ret;
foreach (TaskInventoryItem item in m_items.Values)
{