diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-02 19:46:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-02 19:46:45 +0400 |
commit | fed1b8b16d2d6a56aeea496677f24b286672bb74 (patch) | |
tree | 542e5f6bcfef3491e61f745b4aa1cee769dff63c /source/blender/bmesh/operators | |
parent | dda63375b2fa581197e909c45116ac17b5f8782c (diff) |
Code cleanup: suffix vars to make obvious they are squared
Diffstat (limited to 'source/blender/bmesh/operators')
-rw-r--r-- | source/blender/bmesh/operators/bmo_normals.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/bmesh/operators/bmo_normals.c b/source/blender/bmesh/operators/bmo_normals.c index 7ad592411fc..0856beeeb12 100644 --- a/source/blender/bmesh/operators/bmo_normals.c +++ b/source/blender/bmesh/operators/bmo_normals.c @@ -63,7 +63,7 @@ static void bmo_recalc_face_normals_array(BMesh *bm, BMFace **faces, const int f int i, f_start_index; const short oflag_flip = oflag | FACE_FLIP; - float f_len_best; + float f_len_best_sq; BMFace *f; BLI_LINKSTACK_DECLARE(fstack, BMFace *); @@ -80,13 +80,13 @@ static void bmo_recalc_face_normals_array(BMesh *bm, BMFace **faces, const int f BLI_assert(BM_face_is_normal_valid(faces[i])); } - f_len_best = -FLT_MAX; + f_len_best_sq = -FLT_MAX; for (i = 0; i < faces_len; i++) { - float f_len_test; + float f_len_test_sq; - if ((f_len_test = len_squared_v3v3(faces_center[i], cent)) > f_len_best) { - f_len_best = f_len_test; + if ((f_len_test_sq = len_squared_v3v3(faces_center[i], cent)) > f_len_best_sq) { + f_len_best_sq = f_len_test_sq; f_start_index = i; } } |