diff options
Diffstat (limited to 'source/blender/editors/armature/meshlaplacian.c')
-rw-r--r-- | source/blender/editors/armature/meshlaplacian.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/armature/meshlaplacian.c b/source/blender/editors/armature/meshlaplacian.c index 145071522ed..23fb6c0ab27 100644 --- a/source/blender/editors/armature/meshlaplacian.c +++ b/source/blender/editors/armature/meshlaplacian.c @@ -640,13 +640,11 @@ static float heat_limit_weight(float weight) if (weight < WEIGHT_LIMIT_END) { return 0.0f; } - else if (weight < WEIGHT_LIMIT_START) { + if (weight < WEIGHT_LIMIT_START) { t = (weight - WEIGHT_LIMIT_END) / (WEIGHT_LIMIT_START - WEIGHT_LIMIT_END); return t * WEIGHT_LIMIT_START; } - else { - return weight; - } + return weight; } void heat_bone_weighting(Object *ob, |