correct edgeloop tagging assigning an uninitialized value, also remove redundant NULL check in edgenet fill

This commit is contained in:
2013-08-03 17:29:53 +00:00
parent a4b922ad9b
commit 5f72462e38
2 changed files with 3 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ static int bm_vert_other_tag(BMVert *v, BMVert *v_prev,
BMEdge **r_e)
{
BMIter iter;
BMEdge *e, *e_next;
BMEdge *e, *e_next = NULL;
unsigned int count = 0;
BM_ITER_ELEM (e, &iter, v, BM_EDGES_OF_VERT) {

View File

@@ -826,10 +826,8 @@ static EPath *edge_find_shortest_path(BMesh *bm, BMOperator *op, BMEdge *edge, E
}
if (!v2) {
if (path) {
edge_free_path(pathbase, path);
path = NULL;
}
edge_free_path(pathbase, path);
path = NULL;
continue;
}