mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Preserve the script running flag when copying an object.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user