diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-11-07 23:05:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-11-07 23:13:20 +0300 |
commit | f19f9be1b92157a105112ecc9c28949d34d94994 (patch) | |
tree | 134fcfe503a606aee088d0d43473f8f9300e25f8 | |
parent | 99127925642baf817902821eb2c530282aed9811 (diff) |
BMesh: remove redundant edge-split loop initialize
Would always set both first1 and first2.
-rw-r--r-- | source/blender/bmesh/intern/bmesh_core.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/source/blender/bmesh/intern/bmesh_core.c b/source/blender/bmesh/intern/bmesh_core.c index b65307a7ab0..c75e2649257 100644 --- a/source/blender/bmesh/intern/bmesh_core.c +++ b/source/blender/bmesh/intern/bmesh_core.c @@ -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; } |