[Bf-blender-cvs] [3de40395da4] greasepencil-object: Fix stabilizer cursor after annotations

Antonio Vazquez noreply at git.blender.org
Thu Jun 28 10:21:00 CEST 2018


Commit: 3de40395da48ddbb2369e22c566c442b8a1c2a52
Author: Antonio Vazquez
Date:   Thu Jun 28 10:19:26 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB3de40395da48ddbb2369e22c566c442b8a1c2a52

Fix stabilizer cursor after annotations

The cursor was drawn to wrong position after use annotations.

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

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 88c5848f09b..da3cf43e2e3 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1476,7 +1476,9 @@ static void gp_brush_drawcursor(bContext *C, int x, int y, void *customdata)
 	glDisable(GL_LINE_SMOOTH);
 
 	/* Draw line for lazy mouse */
-	if (last_mouse_position) {
+	if ((last_mouse_position) &&
+		(paintbrush->gpencil_settings->flag & GP_BRUSH_STABILIZE_MOUSE_TEMP))
+	{
 		glEnable(GL_LINE_SMOOTH);
 		glEnable(GL_BLEND);



More information about the Bf-blender-cvs mailing list