diff options
author | Melanie | 2011-01-08 16:44:28 +0100 |
---|---|---|
committer | Melanie | 2011-01-08 16:44:28 +0100 |
commit | c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9 (patch) | |
tree | 65793a755315f256a6242d6126fe851a6a2c2951 /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |
parent | Fix a couple of security issues (diff) | |
download | opensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.zip opensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.tar.gz opensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.tar.bz2 opensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.tar.xz |
Preserve the script running flag when copying an object.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 35cc65b..6bdd4c8 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -1695,5 +1695,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1695 | 1695 | ||
1696 | instance.Resume(); | 1696 | instance.Resume(); |
1697 | } | 1697 | } |
1698 | |||
1699 | public bool HasScript(UUID itemID, out bool running) | ||
1700 | { | ||
1701 | running = true; | ||
1702 | |||
1703 | IScriptInstance instance = GetInstance(itemID); | ||
1704 | if (instance == null) | ||
1705 | return false; | ||
1706 | |||
1707 | running = instance.Running; | ||
1708 | return true; | ||
1709 | } | ||
1698 | } | 1710 | } |
1699 | } | 1711 | } |