Fix T47910: Knife project fails

Regression in fix for T43896, using screen-space precision here is very problematic,
using lower precision here works for both reports.
This commit is contained in:
Campbell Barton 2016-03-24 18:27:39 +11:00
parent 7e65b02fb6
commit f209529c3d
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #47910, Knife project problem
1 changed files with 2 additions and 1 deletions

View File

@ -1625,7 +1625,8 @@ static void knife_find_line_hits(KnifeTool_OpData *kcd)
face_tol = KNIFE_FLT_EPS_PX_FACE;
}
else {
vert_tol = line_tol = face_tol = 0.001f;
/* use 1/100th of a pixel, see T43896 (too big), T47910 (too small). */
vert_tol = line_tol = face_tol = 0.01f;
}
vert_tol_sq = vert_tol * vert_tol;