Fix T44774: Grease Pencil eraser size reset after exiting session

Previously, it would only save the eraser size if the session ended properly,
instead of being cancelled. However, that wouldn't happen if exiting the session
using Esc.
This commit is contained in:
Joshua Leung 2015-05-20 13:56:01 +12:00
parent 03eee4dce7
commit 389564c711
Notes: blender-bot 2024-03-25 12:30:38 +01:00
Referenced by issue #44774, Grease pencil eraser size is reset after exiting session
1 changed files with 2 additions and 3 deletions

View File

@ -1441,9 +1441,8 @@ static void gpencil_draw_exit(bContext *C, wmOperator *op)
/* turn off radial brush cursor */
gpencil_draw_toggle_eraser_cursor(C, p, false);
/* if successful, store the new eraser size to be used again next time */
if (p->status == GP_STATUS_DONE)
U.gp_eraser = p->radius;
/* always store the new eraser size to be used again next time */
U.gp_eraser = p->radius;
}
/* cleanup */