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:
authorAndre Susano Pinto <andresusanopinto@gmail.com>2008-11-04 02:17:36 +0300
committerAndre Susano Pinto <andresusanopinto@gmail.com>2008-11-04 02:17:36 +0300
commitec462b8cead8766c9b12a962d460818d68788015 (patch)
tree5ecf5eea388d649774f1a07bbef304badaaa6281 /source/blender/blenkernel/intern/deform.c
parent6cc1466c61405721f5a7491914c722a2d2b10274 (diff)
Added Lattice vgroup support to shrinkwrap and simple deform modifier.
Diffstat (limited to 'source/blender/blenkernel/intern/deform.c')
-rw-r--r--source/blender/blenkernel/intern/deform.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c
index 3143c5e4df2..47736865273 100644
--- a/source/blender/blenkernel/intern/deform.c
+++ b/source/blender/blenkernel/intern/deform.c
@@ -239,12 +239,9 @@ float deformvert_get_weight(const struct MDeformVert *dvert, int group_num)
float vertexgroup_get_vertex_weight(const struct MDeformVert *dvert, int index, int group_num)
{
- if(group_num == -1)
+ if(group_num == -1 || dvert == NULL)
return 1.0;
- if(dvert == 0)
- return 0.0;
-
return deformvert_get_weight(dvert+index, group_num);
}