Blender Git Loki

Git Commits -> Revision f3c1d0e

Revision f3c1d0e by Philipp Oeser (master)
December 17, 2021, 13:38 (GMT)
Fix T94137: GPencil: Eraser does not erase first point

The eraser checks the current, previous and next point (and sets pc0,
pc1 & pc2 corresponding to that for futher occlusion/brush/clipping
checks). For the very first point, it sets pc0 to pc1 [which makes sense,
there is no previous point, so we should assume the previous segment is
"visible" as soon as the first point is], but does so *before* pc1 is
even calculated. This makes following occlusion/brush/clipping checks
work with zero values [which leads to no earsing in most cases].

Now *first* calculate pc1, *then* set pc0 to pc1.

Maniphest Tasks: T94137

Differential Revision: https://developer.blender.org/D13593

Commit Details:

Full Hash: f3c1d0e3a3b80bdeeb917500bd4f0bcce396adda
Parent Commit: 7c9e409
Lines Changed: +6, -6

1 Modified Path:

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