diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-04-06 11:26:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-04-06 11:26:39 +0300 |
commit | 5ddf6ca87a34bd945e5417c9891c12a7d0e07b1f (patch) | |
tree | a162fd7928ff6b598e73695c847a01eb9830d0ab /source | |
parent | 9e3b0350f5361a78b60c789503306b81a859d88e (diff) |
Quiet warning for release build
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_path_region.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/tools/bmesh_path_region.c b/source/blender/bmesh/tools/bmesh_path_region.c index 389bcc7c6aa..aad1f9c5a49 100644 --- a/source/blender/bmesh/tools/bmesh_path_region.c +++ b/source/blender/bmesh/tools/bmesh_path_region.c @@ -227,7 +227,7 @@ static LinkNode *mesh_calc_path_region_elem( for (pass = 1; (STACK_SIZE(stack) != 0); pass++) { while (STACK_SIZE(stack) != 0) { BMVert *v_a = STACK_POP(stack); - const int v_a_index = BM_elem_index_get(v_a); + // const int v_a_index = BM_elem_index_get(v_a); /* only for assert */ BMEdge *e = v_a->e; do { @@ -258,7 +258,7 @@ static LinkNode *mesh_calc_path_region_elem( #ifdef USE_EDGE_CHAIN BLI_assert(!BM_vert_is_edge_pair(v_b)); #endif - BLI_assert(pass == depths[side][v_a_index] + 1); + BLI_assert(pass == depths[side][BM_elem_index_get(v_a)] + 1); depths[side][v_b_index] = pass; if (!BM_elem_flag_test(v_b, BM_ELEM_TAG)) { STACK_PUSH(stack_other, v_b); |