Fix hair collision error introduced in recent commit

This commit is contained in:
Germano Cavalcante 2020-08-12 18:40:48 -03:00
parent 5319eb36a5
commit 579cb774da
1 changed files with 3 additions and 1 deletions

View File

@ -830,7 +830,9 @@ static int cloth_collision_response_static(ClothModifierData *clmd,
if (result) {
cloth_selfcollision_impulse_vert(clamp_sq, i1, &cloth->verts[collpair->ap1]);
cloth_selfcollision_impulse_vert(clamp_sq, i2, &cloth->verts[collpair->ap2]);
cloth_selfcollision_impulse_vert(clamp_sq, i3, &cloth->verts[collpair->ap3]);
if (!is_hair) {
cloth_selfcollision_impulse_vert(clamp_sq, i3, &cloth->verts[collpair->ap3]);
}
}
}