[Bf-blender-cvs] [426616da43b] blender-v2.79a-release: Correct test ifdef in polyfill
Campbell Barton
noreply at git.blender.org
Wed Jan 3 12:48:12 CET 2018
Commit: 426616da43baf11453e26aa1201fedb742724bde
Author: Campbell Barton
Date: Wed Sep 20 04:57:48 2017 +1000
Branches: blender-v2.79a-release
https://developer.blender.org/rB426616da43baf11453e26aa1201fedb742724bde
Correct test ifdef in polyfill
===================================================================
M source/blender/blenlib/intern/polyfill2d.c
===================================================================
diff --git a/source/blender/blenlib/intern/polyfill2d.c b/source/blender/blenlib/intern/polyfill2d.c
index 5f9b92198a5..e4a951373d8 100644
--- a/source/blender/blenlib/intern/polyfill2d.c
+++ b/source/blender/blenlib/intern/polyfill2d.c
@@ -698,12 +698,12 @@ static bool pf_ear_tip_check(PolyFill *pf, PolyIndex *pi_ear_tip)
/* check if counting is wrong */
{
uint coords_tot_concave_test = 0;
- uint i = pf->coords_tot;
- while (i--) {
- if (coords_sign[indices[i]] != CONVEX) {
+ PolyIndex *pi_iter = pi_ear_tip;
+ do {
+ if (pi_iter->sign != CONVEX) {
coords_tot_concave_test += 1;
}
- }
+ } while ((pi_iter = pi_iter->next) != pi_ear_tip);
BLI_assert(coords_tot_concave_test == pf->coords_tot_concave);
}
#endif
More information about the Bf-blender-cvs
mailing list