Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2015-05-20 04:56:01 +0300
committerJoshua Leung <aligorith@gmail.com>2015-05-21 16:21:28 +0300
commit389564c71177a6e69bd809839753566efe403e16 (patch)
treebfa505b37199f4eacc2b5070fd0004f54ffa995e /source/blender/editors/gpencil/gpencil_paint.c
parent03eee4dce75960c6a789f86120d598985b6f22cf (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/editors/gpencil/gpencil_paint.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c5
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 */