diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-11-02 12:29:12 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-11-02 12:29:12 +0300 |
commit | 9c275e26f99fadf83b5096f87dafce8597fede41 (patch) | |
tree | 4e6f33ba871cf1d2dfe87989180e551e3820360d /source/blender/draw | |
parent | 9da7a0f8bf1403b96452d58f232f47adbbe0876b (diff) | |
parent | 782f36d6a87eb622f6052be8ce49c380a6c78e84 (diff) |
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 5 |
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 af315597e68..36805bc0078 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1128,11 +1128,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); |