From ae9e38bf3fdc27144e0f3fa377c60506526e4c13 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Thu, 16 Oct 2008 21:46:03 +0000 Subject: Fixed (mono-)script handling for SL viewer 1.21: - Added two missing caps (UpdateScriptAgent, UpdateScriptTask) - Added one missing EventQueue event (ScriptRunningReply) - Changed DNE and XEngine to use this new event As we only use the mono engine anyway, the "Mono" checkbox is set by default but doesn't have any function. --- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 1c1d42f..d3269e1 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs @@ -32,6 +32,7 @@ using log4net; using Nini.Config; using OpenSim.Region.Interfaces; using OpenSim.Framework; +using OpenSim.Region.Environment; using OpenSim.Region.Environment.Interfaces; using OpenSim.Region.Environment.Scenes; using OpenSim.Region.ScriptEngine.Interfaces; @@ -369,8 +370,17 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine if (id == null) return; - controllingClient.SendScriptRunningReply(objectID, itemID, - id.Running); + IEventQueue eq = World.RequestModuleInterface(); + if (eq == null) + { + controllingClient.SendScriptRunningReply(objectID, itemID, + id.Running); + } + else + { + eq.Enqueue(EventQueueHelper.ScriptRunningReplyEvent(objectID, itemID, id.Running, true), + controllingClient.AgentId); + } } public IScriptApi GetApi(UUID itemID, string name) -- cgit v1.1