diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-19 01:08:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-19 01:08:15 +0400 |
commit | ea07d93f77d41017b9bfcb75359e8009de771866 (patch) | |
tree | abc178cf2b5db776c10ebb8352fb67366ecc7a62 /source/blender | |
parent | b07ea2fc15ac5593442570f0bcb67c84b620b203 (diff) |
Fix for fix (don't guess enum's sign)
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_intersect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/tools/bmesh_intersect.c b/source/blender/bmesh/tools/bmesh_intersect.c index 252d5e4f8dc..8e80daa8306 100644 --- a/source/blender/bmesh/tools/bmesh_intersect.c +++ b/source/blender/bmesh/tools/bmesh_intersect.c @@ -307,7 +307,7 @@ static enum ISectType intersect_line_tri( fac = line_point_factor_v3(ix_pair[0], p0, p1); if ((fac >= e->eps_margin) && (fac <= 1.0f - e->eps_margin)) { copy_v3_v3(r_ix, ix_pair[0]); - return (IX_EDGE_TRI_EDGE0 + (int)i_t0); + return (IX_EDGE_TRI_EDGE0 + (enum ISectType)i_t0); } } } @@ -402,7 +402,7 @@ static BMVert *bm_isect_edge_tri( #ifdef USE_DUMP printf("# cache hit (%d, %d, %d, %d)\n", UNPACK4(k_arr[i])); #endif - *r_side = (int)i; + *r_side = (enum ISectType)i; return iv; } } |