diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-02 11:32:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-03 17:33:12 +0300 |
commit | e684e0ec959f47402e1de4d6dde2551901a2d89d (patch) | |
tree | b284957d5e49e166467c688ad9a9dab9a466b904 /source/blender/editors/transform | |
parent | bb92edd1c802b521d766f46bf09b7e4b352f8398 (diff) |
Cleanup: fix warnings, removed unused code.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 4b415ffde9e..cc7dd08b8a9 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -5905,6 +5905,7 @@ static bool bm_loop_calc_opposite_co(BMLoop *l_tmp, BMLoop *l_last = l_tmp->prev; BMLoop *l_iter; float dist = FLT_MAX; + bool found = false; l_iter = l_first; do { @@ -5923,12 +5924,13 @@ static bool bm_loop_calc_opposite_co(BMLoop *l_tmp, if (tdist < dist) { copy_v3_v3(r_co, tvec); dist = tdist; + found = true; } } } } while ((l_iter = l_iter->next) != l_last); - return (dist != FLT_MAX); + return found; } /** |