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,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);
}
}
}