GPencil Eraser Size-Saving Fix
On second thought, the eraser size should be saved even if the brush type is not eraser, as we can toggle this now.
This commit is contained in:
parent
389564c711
commit
25bedeca9b
@ -1440,11 +1440,14 @@ static void gpencil_draw_exit(bContext *C, wmOperator *op)
|
|||||||
if (p->paintmode == GP_PAINTMODE_ERASER) {
|
if (p->paintmode == GP_PAINTMODE_ERASER) {
|
||||||
/* turn off radial brush cursor */
|
/* turn off radial brush cursor */
|
||||||
gpencil_draw_toggle_eraser_cursor(C, p, false);
|
gpencil_draw_toggle_eraser_cursor(C, p, false);
|
||||||
|
|
||||||
/* always store the new eraser size to be used again next time */
|
|
||||||
U.gp_eraser = p->radius;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* always store the new eraser size to be used again next time
|
||||||
|
* NOTE: Do this even when not in eraser mode, as eraser may
|
||||||
|
* have been toggled at some point.
|
||||||
|
*/
|
||||||
|
U.gp_eraser = p->radius;
|
||||||
|
|
||||||
/* cleanup */
|
/* cleanup */
|
||||||
gp_paint_cleanup(p);
|
gp_paint_cleanup(p);
|
||||||
gp_session_cleanup(p);
|
gp_session_cleanup(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user