diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-14 05:43:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-14 05:49:27 +0300 |
commit | 3a51a90e56471f22bb3e78ce5475614fc31eeb0d (patch) | |
tree | 98ef3e7257927c1406986eb4ebf1778a771f2707 /source | |
parent | 5e1323640a0c8bff7a004971480d1bd9da484ee6 (diff) |
Fix incorrect weight normalize w/ locks
D1712 by @angavrilov
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 2056b3d6b7d..d632138f3f9 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--; |