bug fix: crash when too many collisions on a ode step
parent
c58ec342ff
commit
bfac09849f
|
@ -1011,8 +1011,6 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
|
||||
while (true)
|
||||
{
|
||||
if (m_global_contactcount >= maxContactsbeforedeath)
|
||||
break;
|
||||
|
||||
// if (!(IgnoreNegSides && curContact.side1 < 0))
|
||||
{
|
||||
|
@ -1032,9 +1030,15 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
if (noskip)
|
||||
{
|
||||
m_global_contactcount++;
|
||||
if (m_global_contactcount >= maxContactsbeforedeath)
|
||||
break;
|
||||
|
||||
ncontacts++;
|
||||
|
||||
Joint = CreateContacJoint(ref curContact, mu, bounce, cfm, erpscale, dscale);
|
||||
if (Joint == IntPtr.Zero)
|
||||
break;
|
||||
|
||||
d.JointAttach(Joint, b1, b2);
|
||||
|
||||
if (curContact.depth > maxContact.depth)
|
||||
|
|
Loading…
Reference in New Issue