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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-14 10:10:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-14 10:10:26 +0400
commit5888830acbf9d5bd2d7bd317928366d45371c507 (patch)
treef40fb83c4b5fe4e79cfdc238869fb22abbfc8236 /source
parent3b8b62ea4e945621f53228657e584f3de7220432 (diff)
tweak to r56784, no functional change, utility function worked confusingly.
Diffstat (limited to 'source')
-rw-r--r--source/blender/bmesh/intern/bmesh_walkers_impl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/bmesh/intern/bmesh_walkers_impl.c b/source/blender/bmesh/intern/bmesh_walkers_impl.c
index 286321b4921..5f5a3f9d5b4 100644
--- a/source/blender/bmesh/intern/bmesh_walkers_impl.c
+++ b/source/blender/bmesh/intern/bmesh_walkers_impl.c
@@ -429,12 +429,12 @@ static void *bmw_IslandWalker_step(BMWalker *walker)
* Starts at a tool-flagged edge and walks over the edge loop
*/
-/* utility function */
-static bool bm_loop_is_single(BMLoop *l)
+/* utility function to see if an edge is apart of an ngon boundary */
+static bool bm_edge_is_single(BMEdge *e)
{
- return ((BM_edge_is_boundary(l->e)) &&
- (l->f->len != 4) &&
- (BM_edge_is_boundary(l->next->e) || BM_edge_is_boundary(l->prev->e)));
+ return ((BM_edge_is_boundary(e)) &&
+ (e->l->f->len != 4) &&
+ (BM_edge_is_boundary(e->l->next->e) || BM_edge_is_boundary(e->l->prev->e)));
}
static void bmw_LoopWalker_begin(BMWalker *walker, void *data)
@@ -453,7 +453,7 @@ static void bmw_LoopWalker_begin(BMWalker *walker, void *data)
lwalk->cur = lwalk->start = e;
lwalk->lastv = lwalk->startv = v;
lwalk->is_boundary = BM_edge_is_boundary(e);
- lwalk->is_single = (lwalk->is_boundary && bm_loop_is_single(e->l));
+ lwalk->is_single = (lwalk->is_boundary && bm_edge_is_single(e));
/* could also check that vertex*/
if ((lwalk->is_boundary == false) &&
@@ -648,7 +648,7 @@ static void *bmw_LoopWalker_step(BMWalker *walker)
} while (true);
}
- if (owalk.is_single == false && bm_loop_is_single(l)) {
+ if (owalk.is_single == false && bm_edge_is_single(l->e)) {
l = NULL;
}