[Bf-blender-cvs] [d20d9aa3e89] master: Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all
Antonio Vazquez
noreply at git.blender.org
Fri Aug 9 20:28:24 CEST 2019
Commit: d20d9aa3e89a0b2aabcba813f2d34ec499c1b67e
Author: Antonio Vazquez
Date: Fri Aug 9 20:28:12 2019 +0200
Branches: master
https://developer.blender.org/rBd20d9aa3e89a0b2aabcba813f2d34ec499c1b67e
Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all
The drawing loop exit too early.
===================================================================
M source/blender/editors/gpencil/drawgpencil.c
===================================================================
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;
}
}
More information about the Bf-blender-cvs
mailing list