diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-03 05:31:29 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-03 05:31:29 +0300 |
commit | 2c5ef58b8bed58ac6babfc8bf04637cd4b0b5bf3 (patch) | |
tree | 8f4315a92b6be120fb41228e5c6d5412db275e97 /source/blender/editors/object | |
parent | 0ff879af73b33985bfdb55c53ff4441f05663def (diff) |
Bugfix #20942: Unassigned Vertex Groups crash Blender on sort
This commit fixes the crash, but it seems that the sorting doesn't work correctly with or without any vertices assigned.
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 933c25b7dbd..0c0b48dccc7 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -1872,7 +1872,7 @@ static int vertex_group_sort_exec(bContext *C, wmOperator *op) } ED_vgroup_give_array(ob->data, &dvert, &dvert_tot); - while(dvert_tot--) { + while(dvert && dvert_tot--) { defvert_remap(dvert, sort_map); dvert++; } |