[Bf-blender-cvs] [9387647ee07] greasepencil-object: Fix problem with Eraser cursor size

Antonio Vazquez noreply at git.blender.org
Fri Mar 2 20:56:54 CET 2018


Commit: 9387647ee07486748876b3a13852d4079072bfdb
Author: Antonio Vazquez
Date:   Fri Mar 2 20:56:41 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB9387647ee07486748876b3a13852d4079072bfdb

Fix problem with Eraser cursor size

The problem was the internal red area was not using the same size of the external lines.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 06002615564..9ed28dd0d14 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1303,7 +1303,7 @@ static void gp_brush_draw_eraser(bContext *C, bGPDbrush *brush, int x, int y)
 	glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
 
 	immUniformColor4ub(255, 100, 100, 20);
-	imm_draw_circle_fill_2d(shdr_pos, x, y, U.gp_eraser, 40);
+	imm_draw_circle_fill_2d(shdr_pos, x, y, radius, 40);
 
 	immUnbindProgram();



More information about the Bf-blender-cvs mailing list