[Bf-blender-cvs] [301383c] master: Add missing weight paint selection mirror

Campbell Barton noreply at git.blender.org
Thu Jan 21 08:54:35 CET 2016


Commit: 301383c6881deb05382da6910e8be632408828c8
Author: Campbell Barton
Date:   Thu Jan 21 18:46:17 2016 +1100
Branches: master
https://developer.blender.org/rB301383c6881deb05382da6910e8be632408828c8

Add missing weight paint selection mirror

Was lost resolving merge-conflict.

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 7dd96c3..f90df4b 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -1968,6 +1968,10 @@ static bool wpaint_stroke_test_start(bContext *C, wmOperator *op, const float UN
 		int i;
 		bDeformGroup *dg;
 
+		if (me->editflag & ME_EDIT_MIRROR_X) {
+			BKE_object_defgroup_mirror_selection(ob, defbase_tot, defbase_sel, defbase_sel, &defbase_tot_sel);
+		}
+
 		for (i = 0; i < defbase_tot; i++) {
 			if (defbase_sel[i]) {
 				dg = BLI_findlink(&ob->defbase, i);




More information about the Bf-blender-cvs mailing list