fix bug in btSoftBodyHelpers, flags the wrong linked index-pairs.
Thanks to basarugur for the fix: http://code.google.com/p/bullet/issues/detail?id=172
This commit is contained in:
@@ -821,7 +821,7 @@ btSoftBody* btSoftBodyHelpers::CreateFromTriMesh(btSoftBodyWorldInfo& worldInfo
|
|||||||
if(!chks[IDX(idx[j],idx[k])])
|
if(!chks[IDX(idx[j],idx[k])])
|
||||||
{
|
{
|
||||||
chks[IDX(idx[j],idx[k])]=true;
|
chks[IDX(idx[j],idx[k])]=true;
|
||||||
chks[IDX(idx[k],idx[k])]=true;
|
chks[IDX(idx[k],idx[j])]=true;
|
||||||
psb->appendLink(idx[j],idx[k]);
|
psb->appendLink(idx[j],idx[k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user