From f95bb533719bd80cfecb5f82e735230a0317bbc6 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 21 Sep 2014 23:02:02 +0100 Subject: remove LockItemsForRead(false) without previus call with true --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 -- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 +- 2 files changed, 1 insertion(+), 3 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 ca682d3..eb6cf23 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -5283,7 +5283,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { return item.AssetID.ToString(); } - m_host.TaskInventory.LockItemsForRead(false); return UUID.Zero.ToString(); } @@ -10203,7 +10202,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api case 4: return (int)item.NextPermissions; } - m_host.TaskInventory.LockItemsForRead(false); return -1; } diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 7081416..d2a5980 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -991,7 +991,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api else animID = UUID.Zero; } - m_host.TaskInventory.LockItemsForRead(false); + if (animID == UUID.Zero) target.Animator.RemoveAnimation(animation); -- cgit v1.1