Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all

The drawing loop exit too early.
This commit is contained in:
Antonio Vazquez 2019-08-09 20:28:12 +02:00
parent 3c81c53a31
commit d20d9aa3e8
Notes: blender-bot 2023-02-14 03:03:03 +01:00
Referenced by issue #68486, GPencil: When interpolate strokes, only display one stroke not all
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}