lianlab / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

btSoftBodyHelpers CreateFromTriMesh assigns true to wrong checks. #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In btSoftBodyHelpers.cpp, at function CreateFromTriMesh:

if(!chks[IDX(idx[j],idx[k])])
{
    chks[IDX(idx[j],idx[k])]=true;
    chks[IDX(idx[k],idx[k])]=true;
    psb->appendLink(idx[j],idx[k]);
}

part is wrong. Second "true" assignment should be

chks[IDX(idx[k],idx[j])]=true;

Right?

Original issue reported on code.google.com by basaru...@gmail.com on 14 Jan 2009 at 11:02

GoogleCodeExporter commented 9 years ago

Good catch, it was a bug indeed.

It has been fixed here:
http://code.google.com/p/bullet/source/detail?r=1584

Thanks for your help!

Original comment by erwin.coumans on 19 Jan 2009 at 7:16

GoogleCodeExporter commented 9 years ago

Original comment by erwin.coumans on 19 Jan 2009 at 7:28