From 59d85ae4d4da1da5186d8389b7741399827a5ff2 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 28 Jan 2010 12:16:35 +0000 Subject: [PATCH] Fix #20857: shrinkwrap doesn't use vertex group, broken recently with some vertex groups changes, the default weight should 0 instead of 1. --- source/blender/blenkernel/intern/deform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c index cb31f533d9a..e9837301458 100644 --- a/source/blender/blenkernel/intern/deform.c +++ b/source/blender/blenkernel/intern/deform.c @@ -487,13 +487,13 @@ void flip_side_name (char *name, const char *from_name, int strip_number) float defvert_find_weight(const struct MDeformVert *dvert, int group_num) { MDeformWeight *dw= defvert_find_index(dvert, group_num); - return dw ? dw->weight : 1.0f; + return dw ? dw->weight : 0.0f; } float defvert_array_find_weight_safe(const struct MDeformVert *dvert, int index, int group_num) { if(group_num == -1 || dvert == NULL) - return 1.0f; + return 0.0f; return defvert_find_weight(dvert+index, group_num); }