diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-03 15:46:48 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-03 15:46:48 +0300 |
commit | 51d3793192303bdaf804292f2ab21ac51da82561 (patch) | |
tree | 7e69eb5a45c58f27661b6569f7b00c6667db6d1e /source/blender/src/editdeform.c | |
parent | b29c28c43b056a3a9ddc4efc952158fa43f1ccee (diff) |
Bugfix #5008
With the addition of vertexgroup support for Lattices, the option
'create vertex groups from closest bone' crashed due to reading NULL.
Fix provided & tested by Joshua.
Diffstat (limited to 'source/blender/src/editdeform.c')
-rw-r--r-- | source/blender/src/editdeform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/editdeform.c b/source/blender/src/editdeform.c index b7a2f43ea3a..62128be9a73 100644 --- a/source/blender/src/editdeform.c +++ b/source/blender/src/editdeform.c @@ -302,6 +302,9 @@ void remove_vert_def_nr (Object *ob, int def_nr, int vertnum) dvert = lt->dvert + vertnum; } + if(dvert==NULL) + return; + /* for all of the deform weights in the * deform vert */ |