Fix a failing bmesh_bevel test by fixing buffer overflow.

The uv fix just submitted had a bug where I forgot to wrap around
after adding 1. This apparently worked anyway in a debug build
but not in release build, hence the buildbot tests were failing.
This commit is contained in:
Howard Trickey 2022-04-22 22:39:05 -04:00
parent 6787cc13d4
commit cfce5a32a7
1 changed files with 2 additions and 1 deletions

View File

@ -5409,8 +5409,9 @@ static void snap_edges_for_vmesh_vert(int i,
}
else if (jj == ns2 && kk == ns2 + 1) {
/* Center poly vert for boundvert i+1. */
int nexti = (i + 1) % n_bndv;
r_snap_edges[corner] = snap_edge_for_center_vmesh_vert(
i + 1, n_bndv, enext, enextnext, bndv_rep_faces, center_frep, frep_beats_next);
nexti, n_bndv, enext, enextnext, bndv_rep_faces, center_frep, frep_beats_next);
}
}
}