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

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