Fix #108573: Remove GP eraser pen pressure conditional #108579

Open
henryb wants to merge 2 commits from henryb/blender:fix-gp-eraser-pen-pressure into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 0 additions and 12 deletions

View File

@ -2974,18 +2974,6 @@ static void gpencil_draw_apply_event(bContext *C,
/* By default use pen pressure for random curves but attenuated. */
p->random_settings.pen_press = pow(p->pressure, 3.0f);
/* Hack for pressure sensitive eraser on D+RMB when using a tablet:
* The pen has to float over the tablet surface, resulting in
* zero pressure (#47101). Ignore pressure values if floating
* (i.e. "effectively zero" pressure), and only when the "active"
* end is the stylus (i.e. the default when not eraser)
*/
if (p->paintmode == GP_PAINTMODE_ERASER) {
if ((event->tablet.active != EVT_TABLET_ERASER) && (p->pressure < 0.001f)) {
p->pressure = 1.0f;
}
}
/* special eraser modes */
if (p->paintmode == GP_PAINTMODE_ERASER) {
if (event->modifier & KM_SHIFT) {