Fix: Cloth could ignore "Shear" vertexgroup
Oversight in e3d31b8dfb
While most situations would have other vertexgroups set anyways (so this
probably wasnt noticed, it was only ignored if it is the only
vertexgroup used), at least theoretically it could happen that
`cloth_uses_vgroup` would return false even then `vgroup_shear` is set
(thus skipping actually setting these weights later).
This commit is contained in:
committed by
Sebastian Parborg
parent
8b5f11839e
commit
c75d2d09e3
@@ -593,7 +593,8 @@ int cloth_uses_vgroup(ClothModifierData *clmd)
|
||||
(clmd->coll_parms->vgroup_objcol > 0)) ||
|
||||
(clmd->sim_parms->vgroup_pressure > 0) || (clmd->sim_parms->vgroup_struct > 0) ||
|
||||
(clmd->sim_parms->vgroup_bend > 0) || (clmd->sim_parms->vgroup_shrink > 0) ||
|
||||
(clmd->sim_parms->vgroup_intern > 0) || (clmd->sim_parms->vgroup_mass > 0));
|
||||
(clmd->sim_parms->vgroup_intern > 0) || (clmd->sim_parms->vgroup_mass > 0) ||
|
||||
(clmd->sim_parms->vgroup_shear > 0));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user