diff options
author | Melanie | 2012-07-01 18:30:59 +0100 |
---|---|---|
committer | Melanie | 2012-07-01 18:30:59 +0100 |
commit | d32cf2157670889c571a34f1a4473d672e29627d (patch) | |
tree | cf0320e75bc2c3c772034251720f3992438764af /OpenSim/Region/ScriptEngine/XEngine | |
parent | Remove some mono compiler warnings (diff) | |
download | opensim-SC-d32cf2157670889c571a34f1a4473d672e29627d.zip opensim-SC-d32cf2157670889c571a34f1a4473d672e29627d.tar.gz opensim-SC-d32cf2157670889c571a34f1a4473d672e29627d.tar.bz2 opensim-SC-d32cf2157670889c571a34f1a4473d672e29627d.tar.xz |
Add preservation of running state of scripts when drag-copying.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-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 35fac4e..7f3bd76 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -2081,5 +2081,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
2081 | // else | 2081 | // else |
2082 | // m_log.DebugFormat("[XEngine]: Could not find script with ID {0} to resume", itemID); | 2082 | // m_log.DebugFormat("[XEngine]: Could not find script with ID {0} to resume", itemID); |
2083 | } | 2083 | } |
2084 | |||
2085 | public bool HasScript(UUID itemID, out bool running) | ||
2086 | { | ||
2087 | running = true; | ||
2088 | |||
2089 | IScriptInstance instance = GetInstance(itemID); | ||
2090 | if (instance == null) | ||
2091 | return false; | ||
2092 | |||
2093 | running = instance.Running; | ||
2094 | return true; | ||
2095 | } | ||
2084 | } | 2096 | } |
2085 | } | 2097 | } |