[Bf-blender-cvs] [3a51a90] master: Fix incorrect weight normalize w/ locks
Campbell Barton
noreply at git.blender.org
Thu Jan 14 03:57:44 CET 2016
Commit: 3a51a90e56471f22bb3e78ce5475614fc31eeb0d
Author: Campbell Barton
Date: Thu Jan 14 13:43:26 2016 +1100
Branches: master
https://developer.blender.org/rB3a51a90e56471f22bb3e78ce5475614fc31eeb0d
Fix incorrect weight normalize w/ locks
D1712 by @angavrilov
===================================================================
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 2056b3d..d632138 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -1391,7 +1391,7 @@ static float redistribute_change(MDeformVert *ndv, const int defbase_tot,
total_valid--;
}
else if (ndw->weight + change < 0) { /* check the lower bound */
- totchange -= ndw->weight;
+ totchange += ndw->weight;
ndw->weight = 0;
change_status[ndw->def_nr] = changeto;
total_valid--;
More information about the Bf-blender-cvs
mailing list