diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e769834..c5e02a6 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 | |||
14318 | { | 14318 | { |
14319 | lock(m_cachedMeshes) | 14319 | lock(m_cachedMeshes) |
14320 | { | 14320 | { |
14321 | m_cachedMeshes.Add(meshKey, mesh); | 14321 | if (!m_cachedMeshes.ContainsKey(meshKey)) |
14322 | m_cachedMeshes.Add(meshKey, mesh); | ||
14322 | } | 14323 | } |
14323 | } | 14324 | } |
14324 | } | 14325 | } |
@@ -14395,7 +14396,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
14395 | { | 14396 | { |
14396 | lock(m_cachedMeshes) | 14397 | lock(m_cachedMeshes) |
14397 | { | 14398 | { |
14398 | m_cachedMeshes.Add(meshKey, mesh); | 14399 | if (!m_cachedMeshes.ContainsKey(meshKey)) |
14400 | m_cachedMeshes.Add(meshKey, mesh); | ||
14399 | } | 14401 | } |
14400 | } | 14402 | } |
14401 | } | 14403 | } |