Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-11-09 17:08:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-11-09 17:08:12 +0300
commite72caa513aa649b43a7765093b5d30f4afd57f14 (patch)
tree3a47769d6cfb566724fcd2d72b37b77ef43772e8 /source/blender/bmesh/intern/bmesh_core.c
parent49a3eaa3dc416d7f8c96c4c01da95c52a587821b (diff)
BMesh: Cleanup, remove hole ifdef
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_core.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_core.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/source/blender/bmesh/intern/bmesh_core.c b/source/blender/bmesh/intern/bmesh_core.c
index ac4eb2c33fd..93ff6f84620 100644
--- a/source/blender/bmesh/intern/bmesh_core.c
+++ b/source/blender/bmesh/intern/bmesh_core.c
@@ -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;