From ce8b9b41815f518488e123a16e0ef85f7c467631 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 22 Jul 2010 19:20:09 +0200 Subject: LSL compatibility fix. Add 0.1 s sleep to llSetLinkPrimitiveParams so fade scripts will time correctly. The -Fast version works without a delay --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a6f0cdd..de00db3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -7165,7 +7165,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api SetPrimParams(m_host, rules); } - public void llSetLinkPrimitiveParams(int linknumber, LSL_List rules) + public void llSetLinkPrimitiveParamsFast(int linknumber, LSL_List rules) { m_host.AddScriptLPS(1); @@ -7191,9 +7191,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } } - public void llSetLinkPrimitiveParamsFast(int linknumber, LSL_List rules) + public void llSetLinkPrimitiveParams(int linknumber, LSL_List rules) { llSetLinkPrimitiveParams(linknumber, rules); + ScriptSleep(100); } protected void SetPrimParams(ScenePresence av, LSL_List rules) -- cgit v1.1