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 12:29:12 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-11-02 12:29:12 +0300
commit9c275e26f99fadf83b5096f87dafce8597fede41 (patch)
tree4e6f33ba871cf1d2dfe87989180e551e3820360d /source/blender/draw
parent9da7a0f8bf1403b96452d58f232f47adbbe0876b (diff)
parent782f36d6a87eb622f6052be8ce49c380a6c78e84 (diff)
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'source/blender/draw')
-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 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);