BMesh: Cleanup, remove hole ifdef
authorCampbell Barton <ideasman42@gmail.com>
Wed, 9 Nov 2016 14:08:12 +0000 (01:08 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 9 Nov 2016 14:08:12 +0000 (01:08 +1100)
source/blender/bmesh/intern/bmesh_core.c

index ac4eb2c33fd64e416dc85e549b8b41e64c4dfa92..93ff6f8462020a58c3e227a86465ff3ffb64d2f5 100644 (file)
@@ -1024,19 +1024,11 @@ static int UNUSED_FUNCTION(bm_loop_length)(BMLoop *l)
  * \param use_loop_mdisp_flip: When set, flip the Z-depth of the mdisp,
  * (use when flipping normals, disable when mirroring, eg: symmetrize).
  */
-static void bm_loop_reverse_loop(
+void bmesh_loop_reverse(
         BMesh *bm, BMFace *f,
-#ifdef USE_BMESH_HOLES
-        BMLoopList *lst,
-#endif
         const int cd_loop_mdisp_offset, const bool use_loop_mdisp_flip)
 {
-
-#ifdef USE_BMESH_HOLES
-       BMLoop *l_first = lst->first;
-#else
        BMLoop *l_first = f->l_first;
-#endif
 
        /* track previous cycles radial state */
        BMEdge *e_prev = l_first->prev->e;
@@ -1052,7 +1044,7 @@ static void bm_loop_reverse_loop(
                bool is_iter_boundary = l_iter_radial_next == l_iter_radial_next->radial_next;
 
 #if 0
-               bmesh_radial_loop_remove(e_curr, l_iter);
+               bmesh_radial_loop_remove(e_iter, l_iter);
                bmesh_radial_loop_append(e_prev, l_iter);
 #else
                /* inline loop reversal */
@@ -1107,20 +1099,6 @@ static void bm_loop_reverse_loop(
        bm->elem_index_dirty |= BM_LOOP;
 }
 
-/**
- * \brief Flip the faces direction
- */
-void bmesh_loop_reverse(
-        BMesh *bm, BMFace *f,
-        const int cd_loop_mdisp_offset, const bool use_loop_mdisp_flip)
-{
-#ifdef USE_BMESH_HOLES
-       bm_loop_reverse_loop(bm, f, f->loops.first, cd_loop_mdisp_offset, use_loop_mdisp_flip);
-#else
-       bm_loop_reverse_loop(bm, f, cd_loop_mdisp_offset, use_loop_mdisp_flip);
-#endif
-}
-
 static void bm_elements_systag_enable(void *veles, int tot, const char api_flag)
 {
        BMHeader **eles = veles;