Fix incorrect weight normalize w/ locks

D1712 by @angavrilov
This commit is contained in:
Campbell Barton
2016-01-14 13:43:26 +11:00
parent 5e1323640a
commit 3a51a90e56

View File

@@ -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--;