don't bother locking OdeScene._perloopContact in single threaded code
parent
61848ebe0d
commit
4b2b0d4a05
|
@ -1244,14 +1244,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))
|
||||
|
@ -1304,10 +1303,6 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue