fix [#31940] crash with automatic weights

This commit is contained in:
Campbell Barton 2012-06-28 07:13:03 +00:00
parent ecc15e53bd
commit be6a5a07ab

@ -4828,6 +4828,9 @@ static void add_verts_to_dgroups(ReportList *reports, Scene *scene, Object *ob,
if (numbones == 0)
return;
if (ED_vgroup_data_create(ob->data) == FALSE)
return;
/* create an array of pointer to bones that are skinnable
* and fill it with all of the skinnable bones */
bonelist = MEM_callocN(numbones * sizeof(Bone *), "bonelist");