From fb15a0ab27a5c8deca1d7c30ee06ef424914a090 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Mon, 19 Jan 2009 07:15:23 +0000 Subject: [PATCH] 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 --- src/BulletSoftBody/btSoftBodyHelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulletSoftBody/btSoftBodyHelpers.cpp b/src/BulletSoftBody/btSoftBodyHelpers.cpp index a6b5268dc..8bc025819 100644 --- a/src/BulletSoftBody/btSoftBodyHelpers.cpp +++ b/src/BulletSoftBody/btSoftBodyHelpers.cpp @@ -821,7 +821,7 @@ btSoftBody* btSoftBodyHelpers::CreateFromTriMesh(btSoftBodyWorldInfo& worldInfo if(!chks[IDX(idx[j],idx[k])]) { 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]); } }