From be6a5a07aba58ef37c81d85605c548f506890670 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Jun 2012 07:13:03 +0000 Subject: fix [#31940] crash with automatic weights --- source/blender/editors/armature/editarmature.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/armature') diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index ea3c8685525..d4755fc95cd 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -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"); -- cgit v1.2.3