diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-18 11:38:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-18 11:38:44 +0400 |
commit | 9fa20e6d88be6d44152b9e856a83c850e5db2928 (patch) | |
tree | 9b9a4dea21e33c98505660ca61d30e9957b5ca66 /source/blender/makesrna/intern/rna_object.c | |
parent | ce00a32f05c6429b7bffd80365a94a71755a55f5 (diff) |
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index dd66e49fdec..61e65585dd4 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -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) |