Fix [#28654] Warp modifier does not support negative strength when Vertex Group is used.

The vg weight was multiplied by org strength (i.e. neg strength was always skiping all verts!), now multiplying it with abs value of strength.
This commit is contained in:
Bastien Montagne
2011-09-15 11:18:15 +00:00
parent 264c63ef03
commit 761c44cbc1

View File

@@ -232,8 +232,8 @@ static void warpModifier_do(WarpModifierData *wmd, Object *ob,
dv = &dvert[i];
if(dv) {
weight = defvert_find_weight(dv, defgrp_index) * wmd->strength;
if(weight <= 0.0f)
weight = defvert_find_weight(dv, defgrp_index) * strength;
if(weight <= 0.0f) /* Should never occure... */
continue;
}
}