Fix mesh cache race condition in llCastRay V3.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>fsassets
parent
defc9c1d86
commit
abb3bb60a6
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue