Blender Git Loki

Git Commits -> Revision 73cd6eb

April 22, 2021, 13:56 (GMT)
GPencil: Fix bezier stroke weight painting

The last element of a bezier stroke could not be weight painted.
This was because the checks use line segments to test for a hit and then
pick the first point of that segment to paint the weight. This causes the
problems for the last point.

Instead of testing of the segment is inside the circle, we just test
if the points are inside the circle.

Note that this should also be done for poly strokes at some point,
because it makes the code simpler.

Commit Details:

Full Hash: 73cd6eb982faa26be512dc339be0bff504a1afeb
Parent Commit: 6e2cbeb
Lines Changed: +5, -11

1 Modified Path:

/source/blender/editors/gpencil/gpencil_weight_paint.c (+5, -11) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021