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.
This commit is contained in:
Ton Roosendaal 2006-11-03 12:46:48 +00:00
parent b29c28c43b
commit 51d3793192

@ -302,6 +302,9 @@ void remove_vert_def_nr (Object *ob, int def_nr, int vertnum)
dvert = lt->dvert + vertnum; dvert = lt->dvert + vertnum;
} }
if(dvert==NULL)
return;
/* for all of the deform weights in the /* for all of the deform weights in the
* deform vert * deform vert
*/ */