Simplify some manipulation of _taintedActors in OdeScene
parent
a110a7bd6a
commit
e830a77860
|
@ -2611,13 +2611,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
{
|
||||
OdeCharacter taintedchar = ((OdeCharacter)actor);
|
||||
lock (_taintedActors)
|
||||
{
|
||||
if (!(_taintedActors.Contains(taintedchar)))
|
||||
{
|
||||
_taintedActors.Add(taintedchar);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2713,16 +2710,12 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
try
|
||||
{
|
||||
lock (_taintedActors)
|
||||
{
|
||||
if (_taintedActors.Count > 0)
|
||||
{
|
||||
foreach (OdeCharacter character in _taintedActors)
|
||||
character.ProcessTaints();
|
||||
|
||||
if (_taintedActors.Count > 0)
|
||||
_taintedActors.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
lock (_taintedPrims)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue