Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-01-14 17:13:19 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-01-14 17:13:39 +0300
commit9ad0b7f8c74174a21a4372b09888692c381984e0 (patch)
tree47b38f3f28b1ce63d152a6ac75a568a71517b6b6 /source/blender/blenkernel/intern/deform.c
parent042e4daa72b7b69925a173d3937f04d35a189baf (diff)
Fix T68480: Normalize All weights with lock Active bug
The original code had 0 as a magic number in the test whether the weight belongs to a locked group, instead of comparing it to the actual group number. Thanks @mano-wii for providing the diff.
Diffstat (limited to 'source/blender/blenkernel/intern/deform.c')
-rw-r--r--source/blender/blenkernel/intern/deform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/deform.c b/source/blender/blenkernel/intern/deform.c
index a964cab3fa5..79dcdd15bf7 100644
--- a/source/blender/blenkernel/intern/deform.c
+++ b/source/blender/blenkernel/intern/deform.c
@@ -345,7 +345,7 @@ void defvert_normalize_lock_single(MDeformVert *dvert,
else if (dvert->totweight == 1) {
MDeformWeight *dw = dvert->dw;
if ((dw->def_nr < vgroup_tot) && vgroup_subset[dw->def_nr]) {
- if (def_nr_lock != 0) {
+ if (def_nr_lock != dw->def_nr) {
dw->weight = 1.0f;
}
}