Commit: eff4b68a6f10edc6edbc09ec36f66d15c9e0e571
Author: Antonioya
Date: Sun Jan 20 20:38:00 2019 +0100
Branches: master
https://developer.blender.org/rBeff4b68a6f10edc6edbc09ec36f66d15c9e0e571
Fix T60678: GP, smoothing a stroke's weights multiple times will lead to
unweightable points
===================================================================
M source/blender/editors/gpencil/gpencil_data.c
===================================================================
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);
}
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs