Merge pull request #3980 from akien-mga/patch-1

SoftBody: Fix local variable shadowing warning
This commit is contained in:
erwincoumans
2021-10-25 09:10:29 -07:00
committed by GitHub

View File

@@ -1317,8 +1317,8 @@ public:
}
for (int k = 0; k < m_faceNodeContacts.size(); ++k)
{
int i = indices[k];
btSoftBody::DeformableFaceNodeContact& c = m_faceNodeContacts[i];
int idx = indices[k];
btSoftBody::DeformableFaceNodeContact& c = m_faceNodeContacts[idx];
btSoftBody::Node* node = c.m_node;
btSoftBody::Face* face = c.m_face;
const btVector3& w = c.m_bary;