don't bother locking OdeScene._perloopContact in single threaded code
parent
e33b0fa35b
commit
25d9001de1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue