Preserve the script running flag when copying an object.

This commit is contained in:
Melanie
2011-01-08 16:44:28 +01:00
parent 1ab9cd0997
commit c271bbcc8a
4 changed files with 60 additions and 0 deletions

View File

@@ -1695,5 +1695,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
instance.Resume();
}
public bool HasScript(UUID itemID, out bool running)
{
running = true;
IScriptInstance instance = GetInstance(itemID);
if (instance == null)
return false;
running = instance.Running;
return true;
}
}
}