Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all
The drawing loop exit too early.
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue