Slight optimisation: Don't check for duplication if we won't use the result anyway.
parent
4b760bba79
commit
a72d3522ff
|
@ -817,18 +817,18 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
// appears to be phantom for the world
|
// appears to be phantom for the world
|
||||||
Boolean skipThisContact = false;
|
Boolean skipThisContact = false;
|
||||||
|
|
||||||
if (contacts[i].depth < 0f)
|
|
||||||
skipThisContact = true;
|
|
||||||
|
|
||||||
if (checkDupe(contacts[i], p2.PhysicsActorType))
|
|
||||||
skipThisContact = true;
|
|
||||||
|
|
||||||
if ((p1 is OdePrim) && (((OdePrim)p1).m_isVolumeDetect))
|
if ((p1 is OdePrim) && (((OdePrim)p1).m_isVolumeDetect))
|
||||||
skipThisContact = true; // No collision on volume detect prims
|
skipThisContact = true; // No collision on volume detect prims
|
||||||
|
|
||||||
if ((p2 is OdePrim) && (((OdePrim)p2).m_isVolumeDetect))
|
if (!skipThisContact && (p2 is OdePrim) && (((OdePrim)p2).m_isVolumeDetect))
|
||||||
skipThisContact = true; // No collision on volume detect prims
|
skipThisContact = true; // No collision on volume detect prims
|
||||||
|
|
||||||
|
if (!skipThisContact && contacts[i].depth < 0f)
|
||||||
|
skipThisContact = true;
|
||||||
|
|
||||||
|
if (!skipThisContact && checkDupe(contacts[i], p2.PhysicsActorType))
|
||||||
|
skipThisContact = true;
|
||||||
|
|
||||||
if (!skipThisContact)
|
if (!skipThisContact)
|
||||||
{
|
{
|
||||||
// If we're colliding against terrain
|
// If we're colliding against terrain
|
||||||
|
|
Loading…
Reference in New Issue