Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2019-11-02 10:30:56 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-11-02 12:28:37 +0300
commit018b754fb6c7ac485e1f3d8b66f0ddeee3772989 (patch)
tree0e79f49e23ea20d9d8de9dcb0eddf4fc2268a394 /source/blender/draw/engines/gpencil/gpencil_draw_utils.c
parenteffe0473185aea3546f68319b719bf63ea409ab2 (diff)
GPencil: Show selection in Stroke mode for single points
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_draw_utils.c')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_draw_utils.c5
1 files 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);