mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
If OdeScene.Near() returns no collision contacts, then exit as early as possible. All subsequent code is only relevant if there are contacts.
This commit is contained in:
@@ -1025,6 +1025,10 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
|
||||
count = CollideGeoms(g1, g2, contacts.Length, contacts, d.ContactGeom.SizeOf);
|
||||
|
||||
// All code after this is only relevant if we have any collisions
|
||||
if (count <= 0)
|
||||
return;
|
||||
|
||||
if (count > contacts.Length)
|
||||
m_log.Error("[ODE SCENE]: Got " + count + " contacts when we asked for a maximum of " + contacts.Length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user