[Bf-blender-cvs] [da78d2d] master: GPencil: Use a different brush cursor for eraser

julianeisel noreply at git.blender.org
Fri Dec 26 16:43:14 CET 2014


Commit: da78d2d74255dd5a6e84da5e023e119e27a4e6d8
Author: julianeisel
Date:   Fri Dec 26 16:38:51 2014 +0100
Branches: master
https://developer.blender.org/rBda78d2d74255dd5a6e84da5e023e119e27a4e6d8

GPencil: Use a different brush cursor for eraser

D783 with minor edits to increase contrast

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

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 692523f..67b0a67 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1362,13 +1362,18 @@ static void gpencil_draw_eraser(bContext *UNUSED(C), int x, int y, void *p_ptr)
 		
 		glTranslatef((float)x, (float)y, 0.0f);
 		
-		glColor4ub(255, 255, 255, 128);
-		
 		glEnable(GL_LINE_SMOOTH);
 		glEnable(GL_BLEND);
 		
+		glColor4ub(255, 100, 100, 20);
+		glutil_draw_filled_arc(0.0, M_PI * 2.0, p->radius, 40);
+
+		setlinestyle(6);
+
+		glColor4ub(255, 100, 100, 200);
 		glutil_draw_lined_arc(0.0, M_PI * 2.0, p->radius, 40);
 		
+		setlinestyle(0);
 		glDisable(GL_BLEND);
 		glDisable(GL_LINE_SMOOTH);




More information about the Bf-blender-cvs mailing list