[Bf-blender-cvs] [018b754fb6c] blender-v2.81-release: GPencil: Show selection in Stroke mode for single points

Antonio Vazquez noreply at git.blender.org
Sat Nov 2 10:28:45 CET 2019


Commit: 018b754fb6c7ac485e1f3d8b66f0ddeee3772989
Author: Antonio Vazquez
Date:   Sat Nov 2 08:30:56 2019 +0100
Branches: blender-v2.81-release
https://developer.blender.org/rB018b754fb6c7ac485e1f3d8b66f0ddeee3772989

GPencil: Show selection in Stroke mode for single points

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

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 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);



More information about the Bf-blender-cvs mailing list