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:
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
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue