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:
Joshua Leung 2015-05-22 01:20:48 +12:00
parent 389564c711
commit 25bedeca9b

View File

@ -1440,11 +1440,14 @@ static void gpencil_draw_exit(bContext *C, wmOperator *op)
if (p->paintmode == GP_PAINTMODE_ERASER) {
/* turn off radial brush cursor */
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 */
gp_paint_cleanup(p);
gp_session_cleanup(p);