diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e7698349a5..c5e02a61ab 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -14318,7 +14318,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { lock(m_cachedMeshes) { - m_cachedMeshes.Add(meshKey, mesh); + if (!m_cachedMeshes.ContainsKey(meshKey)) + m_cachedMeshes.Add(meshKey, mesh); } } } @@ -14395,7 +14396,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { lock(m_cachedMeshes) { - m_cachedMeshes.Add(meshKey, mesh); + if (!m_cachedMeshes.ContainsKey(meshKey)) + m_cachedMeshes.Add(meshKey, mesh); } } }