diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-24 10:27:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-05 11:36:07 +0300 |
commit | 1af7bf3a208e86427c923674117e26fc59e25b63 (patch) | |
tree | 8c67eeafc48b153fdd13bd2bd8241b94754592b1 /source/blender | |
parent | 9a7d57633213dd430f01faaa30ab009907a5770c (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index b606eb0f8d6..59967ffb2bb 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -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; |