Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-03-24 10:27:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-03-24 10:27:39 +0300
commitf209529c3ddedf03199072c72dbcebfaa1ac52cc (patch)
tree8c6200e6b2aec7a99aaebdfba553b82887f6b0e1 /source/blender/editors/mesh/editmesh_knife.c
parent7e65b02fb616a4b71a2ec58a4e544a3ce5c0c94c (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/editors/mesh/editmesh_knife.c')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c3
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;