Fix #21828: vertex group remove function removes vertices from all groups.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 Apr 2010 11:22:49 +0000 (11:22 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 Apr 2010 11:22:49 +0000 (11:22 +0000)
source/blender/editors/object/object_vgroup.c

index b086c47d6a667e66bb136ae48d0256e854c041b0..76de8ee9dbe49ed3a917149dae589232339f6662 100644 (file)
@@ -1458,7 +1458,11 @@ static int vertex_group_remove_from_exec(bContext *C, wmOperator *op)
 {
        Object *ob= CTX_data_edit_object(C);
 
-       vgroup_remove_verts(ob, 0);
+       if(RNA_boolean_get(op->ptr, "all"))
+               vgroup_remove_verts(ob, 0);
+       else
+               vgroup_active_remove_verts(ob, 0);
+
        DAG_id_flush_update(&ob->id, OB_RECALC_DATA);
        WM_event_add_notifier(C, NC_GEOM|ND_DATA, ob->data);