forked from bartvdbraak/blender
fix [#31940] crash with automatic weights
This commit is contained in:
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");
|
||||
|
Loading…
Reference in New Issue
Block a user