BMesh: remove redundant edge-split loop initialize

Would always set both first1 and first2.
This commit is contained in:
Campbell Barton 2016-11-08 07:05:29 +11:00
parent 9912792564
commit f19f9be1b9
1 changed files with 5 additions and 15 deletions

View File

@ -1669,7 +1669,7 @@ BMVert *bmesh_semv(BMesh *bm, BMVert *tv, BMEdge *e, BMEdge **r_e)
#ifndef NDEBUG
int radlen = bmesh_radial_length(l_next);
#endif
int first1 = 0, first2 = 0;
bool is_first = true;
/* Take the next loop. Remove it from radial. Split it. Append to appropriate radials */
while (l_next) {
@ -1691,13 +1691,8 @@ BMVert *bmesh_semv(BMesh *bm, BMVert *tv, BMEdge *e, BMEdge **r_e)
l->e = e_new;
/* append l into e_new's rad cycle */
if (!first1) {
first1 = 1;
l->radial_next = l->radial_prev = NULL;
}
if (!first2) {
first2 = 1;
if (is_first) {
is_first = false;
l->radial_next = l->radial_prev = NULL;
}
@ -1709,13 +1704,8 @@ BMVert *bmesh_semv(BMesh *bm, BMVert *tv, BMEdge *e, BMEdge **r_e)
l->e = e;
/* append l into e_new's rad cycle */
if (!first1) {
first1 = 1;
l->radial_next = l->radial_prev = NULL;
}
if (!first2) {
first2 = 1;
if (is_first) {
is_first = false;
l->radial_next = l->radial_prev = NULL;
}