From 51d3793192303bdaf804292f2ab21ac51da82561 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 3 Nov 2006 12:46:48 +0000 Subject: [PATCH] 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. --- source/blender/src/editdeform.c | 3 +++ 1 file changed, 3 insertions(+) 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 */