Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2011-09-15 15:18:15 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2011-09-15 15:18:15 +0400
commit761c44cbc1274a023fdb89cf5a4cbd4100684cd3 (patch)
tree1c6bc68424ae6d8cd42b9e8984b1327afe61025d
parent264c63ef03dceeac3ecd2177bbfd26391125a4b7 (diff)
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.
-rw-r--r--source/blender/modifiers/intern/MOD_warp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_warp.c b/source/blender/modifiers/intern/MOD_warp.c
index c1c3604d598..723e77cc6bb 100644
--- a/source/blender/modifiers/intern/MOD_warp.c
+++ b/source/blender/modifiers/intern/MOD_warp.c
@@ -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;
}
}