Correct test ifdef in polyfill
This commit is contained in:
@@ -698,12 +698,12 @@ static bool pf_ear_tip_check(PolyFill *pf, PolyIndex *pi_ear_tip)
|
|||||||
/* check if counting is wrong */
|
/* check if counting is wrong */
|
||||||
{
|
{
|
||||||
uint coords_tot_concave_test = 0;
|
uint coords_tot_concave_test = 0;
|
||||||
uint i = pf->coords_tot;
|
PolyIndex *pi_iter = pi_ear_tip;
|
||||||
while (i--) {
|
do {
|
||||||
if (coords_sign[indices[i]] != CONVEX) {
|
if (pi_iter->sign != CONVEX) {
|
||||||
coords_tot_concave_test += 1;
|
coords_tot_concave_test += 1;
|
||||||
}
|
}
|
||||||
}
|
} while ((pi_iter = pi_iter->next) != pi_ear_tip);
|
||||||
BLI_assert(coords_tot_concave_test == pf->coords_tot_concave);
|
BLI_assert(coords_tot_concave_test == pf->coords_tot_concave);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user