diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-08-09 21:28:12 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-08-09 21:28:12 +0300 |
commit | d20d9aa3e89a0b2aabcba813f2d34ec499c1b67e (patch) | |
tree | f722ce6a51f68f2df6939ea3b70fc1d26a44b22b /source/blender | |
parent | 3c81c53a31ee80f6ae8d542d2af1903f086e214e (diff) |
Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all
The drawing loop exit too early.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/drawgpencil.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |