From d20d9aa3e89a0b2aabcba813f2d34ec499c1b67e Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 9 Aug 2019 20:28:12 +0200 Subject: Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all The drawing loop exit too early. --- source/blender/editors/gpencil/drawgpencil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/gpencil') diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 0c2af982279..2b31af5ff1f 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -866,6 +866,7 @@ static void gp_draw_strokes(tGPDdraw *tgpw) float tfill[4]; short sthickness; float ink[4]; + const bool is_unique = (tgpw->gps != NULL); GPU_program_point_size(true); @@ -1099,7 +1100,7 @@ static void gp_draw_strokes(tGPDdraw *tgpw) } } /* if only one stroke, exit from loop */ - if (tgpw->gps) { + if (is_unique) { break; } } -- cgit v1.2.3