From ea9c45636768a32e77ace7c5fc955577d8f7901b Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 15 Feb 2017 00:54:26 -0700 Subject: [PATCH] Revert "light: Face_Pick: make more lenient" This reverts commit 5292728fe38e56f94fd5e311d85b73f66e43f51f. --- light/light.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/light.cc b/light/light.cc index 7dbfd41e..a9cad3cb 100644 --- a/light/light.cc +++ b/light/light.cc @@ -566,7 +566,7 @@ Face_Pick(const bsp2_t *bsp, const glm::vec3 &point) const auto plane = Face_Plane_E(bsp, f); const float planedist = GLM_DistAbovePlane(plane, point); - if (fabs(planedist) > 1) + if (fabs(planedist) > ON_EPSILON) continue; const auto points = GLM_FacePoints(bsp, f);