diff options
author | Antonioya <blendergit@gmail.com> | 2019-01-20 22:38:00 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-01-20 22:38:00 +0300 |
commit | eff4b68a6f10edc6edbc09ec36f66d15c9e0e571 (patch) | |
tree | 5e836043680885a3a2bbbd93fa0dd57cdbf9dd57 | |
parent | 6e443b32103505221fef86d2dcd5f4b8e6df550a (diff) |
Fix T60678: GP, smoothing a stroke's weights multiple times will lead to unweightable points
-rw-r--r-- | source/blender/editors/gpencil/gpencil_data.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index 26a05363888..385d70773ca 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -1835,6 +1835,7 @@ static int gpencil_vertex_group_smooth_exec(bContext *C, wmOperator *op) MDeformWeight *dw = defvert_verify_index(dvertb, def_nr); if (dw) { dw->weight = interpf(wb, optimal, fac); + CLAMP(dw->weight, 0.0, 1.0f); } } } |