Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-31 17:43:56 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-31 17:43:56 +0400
commit78c181fafc91d90e794b43da876f3c317a4fe3a6 (patch)
treeda649e585a94a4ef15a32ec4ac5eb35274c1c636 /source/blender
parent6b2aa6f863cfcc60ba90cf6accd7a302c4133ff3 (diff)
Fix part of #32376: mirror vertex groups with flip group names did not keep
the same vertex group active.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/object/object_vgroup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c
index c4616fc39c6..d08237ed09a 100644
--- a/source/blender/editors/object/object_vgroup.c
+++ b/source/blender/editors/object/object_vgroup.c
@@ -1682,6 +1682,10 @@ void ED_vgroup_mirror(Object *ob, const short mirror_weights, const short flip_v
}
}
+ /* flip active group index */
+ if (flip_vgroups && flip_map[def_nr] >= 0)
+ ob->actdef = flip_map[def_nr] + 1;
+
cleanup:
if (flip_map) MEM_freeN(flip_map);
@@ -2674,7 +2678,7 @@ void OBJECT_OT_vertex_group_mirror(wmOperatorType *ot)
/* properties */
RNA_def_boolean(ot->srna, "mirror_weights", TRUE, "Mirror Weights", "Mirror weights");
- RNA_def_boolean(ot->srna, "flip_group_names", TRUE, "Flip Groups", "Flip vertex group names");
+ RNA_def_boolean(ot->srna, "flip_group_names", TRUE, "Flip Group Names", "Flip vertex group names");
RNA_def_boolean(ot->srna, "all_groups", FALSE, "All Groups", "Mirror all vertex groups weights");
}