vertex group option for lattice, needed for applying a lattice to a beard/moustache without moving the roots about.

This commit is contained in:
2010-04-20 21:38:55 +00:00
parent 3754201720
commit 24eedb2175
7 changed files with 76 additions and 42 deletions

View File

@@ -213,10 +213,8 @@ static DerivedMesh *applyModifier(ModifierData *md,
/* weights */
MDeformVert *dvert= NULL, *dv= NULL;
int defgrp_index= -1;
int defgrp_invert = ((smd->flag & MOD_SOLIDIFY_VGROUP_INV) != 0);
defgrp_index= defgroup_name_index(ob, smd->defgrp_name);
int defgrp_index= defgroup_name_index(ob, smd->defgrp_name);
if (defgrp_index >= 0)
dvert = dm->getVertDataArray(dm, CD_MDEFORMVERT);