diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-12-16 13:22:23 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-12-17 16:38:11 +0300 |
commit | f3c1d0e3a3b80bdeeb917500bd4f0bcce396adda (patch) | |
tree | 0f448a17ff1a4d8aad176acd194360c08e89b110 /intern | |
parent | 7c9e4099854a4fc8eab4db97173c1aacd25f9e08 (diff) |
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
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions