forked from bartvdbraak/blender
fix [#28003] Unable to delete vgroup
still need to find how an invalid defgroup index is set, but at least dont show the vertex group as selected when its not.
This commit is contained in:
parent
ce00a32f05
commit
9fa20e6d88
@ -483,7 +483,7 @@ static PointerRNA rna_Object_active_vertex_group_get(PointerRNA *ptr)
|
||||
static int rna_Object_active_vertex_group_index_get(PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
return MAX2(ob->actdef-1, 0);
|
||||
return ob->actdef-1;
|
||||
}
|
||||
|
||||
static void rna_Object_active_vertex_group_index_set(PointerRNA *ptr, int value)
|
||||
|
Loading…
Reference in New Issue
Block a user