From a2b94de5397f3a259c4244379b7fa89e57769d82 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 11 Feb 2010 10:41:11 +0000 Subject: [#21095] r26789 'copy vertex group to selected' crash blender --- source/blender/editors/object/object_vgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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 */ -- cgit v1.2.3