[Bf-blender-cvs] [69aea4c5965] greasepencil-object: Make paint cursor size fix

Antonio Vazquez noreply at git.blender.org
Mon Sep 11 10:34:41 CEST 2017


Commit: 69aea4c5965d8437b59b2523cc179537f0cb48fa
Author: Antonio Vazquez
Date:   Mon Sep 11 10:34:28 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB69aea4c5965d8437b59b2523cc179537f0cb48fa

Make paint cursor size fix

After some testing, display the real size of the brush is not practical because is too disruptive and the size of cursor does not change with zoom factor. The decision was to use a fix size, instead of  paintbrush->thickness value.

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

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 895e6c5c061..c8bc0497541 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1386,7 +1386,11 @@ static void gp_brush_drawcursor(bContext *C, int x, int y, void *UNUSED(customda
 			if ((paintbrush->flag & GP_BRUSH_ENABLE_CURSOR) == 0) {
 				return;
 			}
-			radius = paintbrush->thickness;
+			/* after some testing, display the size of the brush is not practical because 
+			 * is too disruptive and the size of cursor does not change with zoom factor.
+			 * The decision was to use a fix size, instead of  paintbrush->thickness value. 
+			 */
+			radius = 3.0f;
 			copy_v3_v3(color, paintbrush->curcolor);
 		}
 	}



More information about the Bf-blender-cvs mailing list