diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-11 13:41:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-11 13:41:11 +0300 |
commit | a2b94de5397f3a259c4244379b7fa89e57769d82 (patch) | |
tree | beef81e3ed406540db45bc85771c5254c1d6a244 /source/blender/editors/object | |
parent | 09324022445bc56813eefa71dd43c49c7e253d33 (diff) |
[#21095] r26789 'copy vertex group to selected' crash blender
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 9288cbbc93f..af0ef9f15cf 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -168,7 +168,7 @@ int ED_vgroup_copy_array(Object *ob, Object *ob_from) ED_vgroup_give_array(ob_from->data, &dvert_array_from, &dvert_tot_from); ED_vgroup_give_array(ob->data, &dvert_array, &dvert_tot); - if(ob==ob_from || dvert_tot==0 || (dvert_tot != dvert_tot_from)) + if(ob==ob_from || dvert_tot==0 || (dvert_tot != dvert_tot_from) || dvert_array_from==NULL || dvert_array==NULL) return 0; /* do the copy */ |