diff options
Diffstat (limited to 'source/blender/editors/object/object_vgroup.c')
-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 */ |