From 018b754fb6c7ac485e1f3d8b66f0ddeee3772989 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Sat, 2 Nov 2019 08:30:56 +0100 Subject: [PATCH] GPencil: Show selection in Stroke mode for single points --- source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 68624540d08..bbbf85c0ace 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1133,11 +1133,12 @@ static void gpencil_add_editpoints_vertexdata(GpencilBatchCache *cache, */ const bool show_points = (show_sculpt_points) || (is_weight_paint) || (GPENCIL_EDIT_MODE(gpd) && - (ts->gpencil_selectmode_edit != GP_SELECTMODE_STROKE)); + ((ts->gpencil_selectmode_edit != GP_SELECTMODE_STROKE) || + (gps->totpoints == 1))); if (cache->is_dirty) { if ((obact == ob) && ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0) && - (v3d->gp_flag & V3D_GP_SHOW_EDIT_LINES)) { + (v3d->gp_flag & V3D_GP_SHOW_EDIT_LINES) && (gps->totpoints > 1)) { /* line of the original stroke */ gpencil_get_edlin_geom(&cache->b_edlin, gps, edit_alpha, hide_select);