[Bf-blender-cvs] [389564c] master: Fix T44774: Grease Pencil eraser size reset after exiting session

Joshua Leung noreply at git.blender.org
Thu May 21 15:24:17 CEST 2015


Commit: 389564c71177a6e69bd809839753566efe403e16
Author: Joshua Leung
Date:   Wed May 20 13:56:01 2015 +1200
Branches: master
https://developer.blender.org/rB389564c71177a6e69bd809839753566efe403e16

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.

===================================================================

M	source/blender/editors/gpencil/gpencil_paint.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 3d04375..360ddfe 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 */




More information about the Bf-blender-cvs mailing list