diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-28 11:13:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-28 11:13:03 +0400 |
commit | be6a5a07aba58ef37c81d85605c548f506890670 (patch) | |
tree | 1d748ca87738b661ddfbe9a39eb59b1cee7ab6da /source/blender/editors/armature/editarmature.c | |
parent | ecc15e53bd381fb17fcd5b730fab7e980b977616 (diff) |
fix [#31940] crash with automatic weights
Diffstat (limited to 'source/blender/editors/armature/editarmature.c')
-rw-r--r-- | source/blender/editors/armature/editarmature.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |