diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-05-21 16:20:48 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-05-21 16:21:29 +0300 |
commit | 25bedeca9b84c256e8a50b322fa10e7e598805e5 (patch) | |
tree | 2ca522151d1af199b6df58641ff215ab91ef5fcb /source/blender | |
parent | 389564c71177a6e69bd809839753566efe403e16 (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 360ddfeffe9..f3eb1612576 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -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); |