diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-11 18:21:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-11 18:21:52 +0400 |
commit | 06d5747ff3406a41633a17bac64d1150453c516c (patch) | |
tree | 42551aa74f1ca7bbf80f24dd5ca8c4720d56a9a3 /source/blender/editors/mesh | |
parent | dfa662f53ae4562ccd44d8d8ba59c93bab2ff321 (diff) |
was using max short on a float in EDBM_face_find_nearest()
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 1c9fc756426..a98345cacec 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -573,7 +573,7 @@ BMFace *EDBM_face_find_nearest(ViewContext *vc, float *r_dist) data.mval_fl[0] = vc->mval[0]; data.mval_fl[1] = vc->mval[1]; - data.dist = 0x7FFF; /* largest short */ + data.dist = FLT_MAX; data.toFace = efa; mesh_foreachScreenFace(vc, findnearestface__getDistance, &data, V3D_PROJ_TEST_CLIP_DEFAULT); |