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
commit e4a450a53d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;