[Bf-blender-cvs] [5d1bf002838] greasepencil-object: GPencil: Don't hide cursor in Weight and Vertex Paint
Antonio Vazquez
noreply at git.blender.org
Mon Mar 2 18:57:23 CET 2020
Commit: 5d1bf0028383c49d7c1767e00fda25d540488438
Author: Antonio Vazquez
Date: Mon Mar 2 18:57:17 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB5d1bf0028383c49d7c1767e00fda25d540488438
GPencil: Don't hide cursor in Weight and Vertex Paint
The cursor must be visible all the time
===================================================================
M source/blender/editors/gpencil/gpencil_vertex_paint.c
M source/blender/editors/gpencil/gpencil_weight_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_vertex_paint.c b/source/blender/editors/gpencil/gpencil_vertex_paint.c
index 503f80fd12e..5ea9a795286 100644
--- a/source/blender/editors/gpencil/gpencil_vertex_paint.c
+++ b/source/blender/editors/gpencil/gpencil_vertex_paint.c
@@ -770,8 +770,6 @@ static bool gp_vertexpaint_brush_init(bContext *C, wmOperator *op)
/* Update header. */
gp_vertexpaint_brush_header_set(C);
- /* Setup cursor drawing. */
- ED_gpencil_toggle_brush_cursor(C, true, NULL);
return true;
}
@@ -779,9 +777,8 @@ static void gp_vertexpaint_brush_exit(bContext *C, wmOperator *op)
{
tGP_BrushVertexpaintData *gso = op->customdata;
- /* Disable cursor and headerprints. */
+ /* Disable headerprints. */
ED_workspace_status_text(C, NULL);
- ED_gpencil_toggle_brush_cursor(C, false, NULL);
/* Disable temp invert flag. */
gso->brush->flag &= ~GP_VERTEX_FLAG_TMP_INVERT;
diff --git a/source/blender/editors/gpencil/gpencil_weight_paint.c b/source/blender/editors/gpencil/gpencil_weight_paint.c
index f629c84cb61..0a8e1f0626e 100644
--- a/source/blender/editors/gpencil/gpencil_weight_paint.c
+++ b/source/blender/editors/gpencil/gpencil_weight_paint.c
@@ -335,8 +335,6 @@ static bool gp_weightpaint_brush_init(bContext *C, wmOperator *op)
/* Update header. */
gp_weightpaint_brush_header_set(C);
- /* Setup cursor drawing. */
- ED_gpencil_toggle_brush_cursor(C, true, NULL);
return true;
}
@@ -344,9 +342,8 @@ static void gp_weightpaint_brush_exit(bContext *C, wmOperator *op)
{
tGP_BrushWeightpaintData *gso = op->customdata;
- /* Disable cursor and headerprints. */
+ /* Disable headerprints. */
ED_workspace_status_text(C, NULL);
- ED_gpencil_toggle_brush_cursor(C, false, NULL);
/* Free operator data */
MEM_SAFE_FREE(gso->pbuffer);
More information about the Bf-blender-cvs
mailing list