Simplify some manipulation of _taintedActors in OdeScene
parent
cfdccdd71c
commit
903da8acbd
|
@ -2613,13 +2613,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
{
|
{
|
||||||
OdeCharacter taintedchar = ((OdeCharacter)actor);
|
OdeCharacter taintedchar = ((OdeCharacter)actor);
|
||||||
lock (_taintedActors)
|
lock (_taintedActors)
|
||||||
{
|
|
||||||
if (!(_taintedActors.Contains(taintedchar)))
|
|
||||||
{
|
{
|
||||||
_taintedActors.Add(taintedchar);
|
_taintedActors.Add(taintedchar);
|
||||||
if (taintedchar.bad)
|
if (taintedchar.bad)
|
||||||
m_log.DebugFormat("[ODE SCENE]: Added BAD actor {0} to tainted actors", taintedchar.m_uuid);
|
m_log.ErrorFormat("[ODE SCENE]: Added BAD actor {0} to tainted actors", taintedchar.m_uuid);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2699,16 +2696,12 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
lock (_taintedActors)
|
lock (_taintedActors)
|
||||||
{
|
|
||||||
if (_taintedActors.Count > 0)
|
|
||||||
{
|
{
|
||||||
foreach (OdeCharacter character in _taintedActors)
|
foreach (OdeCharacter character in _taintedActors)
|
||||||
character.ProcessTaints();
|
character.ProcessTaints();
|
||||||
|
|
||||||
if (_taintedActors.Count > 0)
|
|
||||||
_taintedActors.Clear();
|
_taintedActors.Clear();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
lock (_taintedPrims)
|
lock (_taintedPrims)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue