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>2021-03-31 15:27:07 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-31 15:36:51 +0300
commit14901e37741981a1317e6eb29f8be7c96526293d (patch)
treee3c079dd5e7fd113c89cdcb56983d8157281e918 /source/blender/editors/mesh/editmesh_path.c
parentd97dca510625169c469dc34a5d71720cf510f61f (diff)
Fix T87080: Select shortest path fails in face mode
Regression in 80cbbd2843c2358879b1a710d81a3b41e1468327. Unfortunately keeping selection picking behavior as well as supporting finding the nearest face within a radius requires an inconsistency between x-ray and back-buffer selection that doesn't work well using the current arguments. Resolve by adding an argument that causes the input distance to be ignored for back-buffer selection. This is used by selection picking but not the knife tool. This changes behavior for path-selection in face mode, which now uses a margin for back-buffer selection. From my own testing this doesn't seem to be a problem like it could be for regular selection picking.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_path.c')
-rw-r--r--source/blender/editors/mesh/editmesh_path.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c
index 13c156fddec..b7f671a4157 100644
--- a/source/blender/editors/mesh/editmesh_path.c
+++ b/source/blender/editors/mesh/editmesh_path.c
@@ -646,9 +646,6 @@ static BMElem *edbm_elem_find_nearest(ViewContext *vc, const char htype)
return (BMElem *)EDBM_edge_find_nearest(vc, &dist);
}
if ((em->selectmode & SCE_SELECT_FACE) && (htype == BM_FACE)) {
- /* Only pick faces directly under the cursor.
- * We could look into changing this, for now it matches regular face selection. */
- dist = 0.0f;
return (BMElem *)EDBM_face_find_nearest(vc, &dist);
}