don't bother locking OdeScene._perloopContact in single threaded code

iar_mods
Justin Clark-Casey (justincc) 2011-11-21 20:17:36 +00:00
parent e33b0fa35b
commit 25d9001de1
1 changed files with 45 additions and 50 deletions

View File

@ -1247,14 +1247,13 @@ namespace OpenSim.Region.Physics.OdePlugin
private bool checkDupe(d.ContactGeom contactGeom, int atype)
{
bool result = false;
//return result;
if (!m_filterCollisions)
return false;
bool result = false;
ActorTypes at = (ActorTypes)atype;
lock (_perloopContact)
{
foreach (d.ContactGeom contact in _perloopContact)
{
//if ((contact.g1 == contactGeom.g1 && contact.g2 == contactGeom.g2))
@ -1307,10 +1306,6 @@ namespace OpenSim.Region.Physics.OdePlugin
}
}
//}
}
}
return result;