Fix T60678: GP, smoothing a stroke's weights multiple times will lead to unweightable points

This commit is contained in:
Antonioya
2019-01-20 20:38:00 +01:00
parent 6e443b3210
commit eff4b68a6f

View File

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