diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-05-20 04:56:01 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-05-21 16:21:28 +0300 |
commit | 389564c71177a6e69bd809839753566efe403e16 (patch) | |
tree | bfa505b37199f4eacc2b5070fd0004f54ffa995e /source/blender | |
parent | 03eee4dce75960c6a789f86120d598985b6f22cf (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index 3d04375e00e..360ddfeffe9 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -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 */ |