[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50290] trunk/blender/source/blender/ editors/object/object_vgroup.c: Fix part of #32376: mirror vertex groups with flip group names did not keep
Brecht Van Lommel
brechtvanlommel at pandora.be
Fri Aug 31 15:43:57 CEST 2012
Revision: 50290
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50290
Author: blendix
Date: 2012-08-31 13:43:56 +0000 (Fri, 31 Aug 2012)
Log Message:
-----------
Fix part of #32376: mirror vertex groups with flip group names did not keep
the same vertex group active.
Modified Paths:
--------------
trunk/blender/source/blender/editors/object/object_vgroup.c
Modified: trunk/blender/source/blender/editors/object/object_vgroup.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_vgroup.c 2012-08-31 13:04:03 UTC (rev 50289)
+++ trunk/blender/source/blender/editors/object/object_vgroup.c 2012-08-31 13:43:56 UTC (rev 50290)
@@ -1682,6 +1682,10 @@
}
}
+ /* 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 @@
/* 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");
}
More information about the Bf-blender-cvs
mailing list