Fix mesh cache race condition in llCastRay V3.

Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
fsassets
Magnuz Binder 2015-05-23 13:48:37 +02:00 committed by Michael Cerquoni
parent defc9c1d86
commit abb3bb60a6
1 changed files with 4 additions and 2 deletions

View File

@ -14318,6 +14318,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{ {
lock(m_cachedMeshes) lock(m_cachedMeshes)
{ {
if (!m_cachedMeshes.ContainsKey(meshKey))
m_cachedMeshes.Add(meshKey, mesh); m_cachedMeshes.Add(meshKey, mesh);
} }
} }
@ -14395,6 +14396,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{ {
lock(m_cachedMeshes) lock(m_cachedMeshes)
{ {
if (!m_cachedMeshes.ContainsKey(meshKey))
m_cachedMeshes.Add(meshKey, mesh); m_cachedMeshes.Add(meshKey, mesh);
} }
} }