Commit: 5e4d6aee0453ba69ea18899e71b3ae36bad735cf Author: Antonio Vazquez Date: Tue Nov 12 16:01:58 2019 +0100 Branches: greasepencil-object https://developer.blender.org/rB5e4d6aee0453ba69ea18899e71b3ae36bad735cf
GPencil: Show Vertices in Vertex Paint always =================================================================== M source/blender/draw/engines/gpencil/gpencil_draw_utils.c =================================================================== diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 9ed3b9b6a6f..f96678a8477 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1162,6 +1162,7 @@ static void gpencil_add_editpoints_vertexdata(GpencilBatchCache *cache, return; } const bool is_weight_paint = (gpd) && (gpd->flag & GP_DATA_STROKE_WEIGHTMODE); + const bool is_vertex_paint = (gpd) && (gpd->flag & GP_DATA_STROKE_VERTEXMODE); /* If Sculpt/Vertex mode and the mask is disabled, the select must be hidden. */ const bool hide_select = ((GPENCIL_SCULPT_MODE(gpd) && !use_sculpt_mask) || @@ -1173,6 +1174,7 @@ static void gpencil_add_editpoints_vertexdata(GpencilBatchCache *cache, * Weight mode: Always */ const bool show_points = (show_sculpt_points) || (show_vertex_points) || (is_weight_paint) || + (is_vertex_paint) || (GPENCIL_EDIT_MODE(gpd) && ((ts->gpencil_selectmode_edit != GP_SELECTMODE_STROKE) || (gps->totpoints == 1))); @@ -1201,12 +1203,13 @@ static void gpencil_add_editpoints_vertexdata(GpencilBatchCache *cache, } /* If the points are hidden return. */ - if ((!show_points) || (hide_select)) { + if ((!show_points) || (hide_select) || ((is_vertex_paint) && (!is_overlay))) { return; } /* edit points */ - if (((gps->flag & GP_STROKE_SELECT) && (is_overlay)) || (is_weight_paint)) { + if (((gps->flag & GP_STROKE_SELECT) && (is_overlay)) || (is_weight_paint) || + (is_vertex_paint)) { if ((gpl->flag & GP_LAYER_UNLOCK_COLOR) || ((gp_style->flag & GP_STYLE_COLOR_LOCKED) == 0)) { if (obact == ob) { _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs