[Bf-blender-cvs] [c26cd6e996d] blender-v2.83-release: Fix T76894: Disable clipping region selection in material/rendered mode
Jeroen Bakker
noreply at git.blender.org
Thu Jun 18 10:15:24 CEST 2020
Commit: c26cd6e996d751bb3011976f03e7ee8c508ac3c5
Author: Jeroen Bakker
Date: Mon Jun 8 12:47:17 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBc26cd6e996d751bb3011976f03e7ee8c508ac3c5
Fix T76894: Disable clipping region selection in material/rendered mode
In this case the draw engine isn't responsible for the selection, but
the editor is.
Reviewed By: Clément Foucault
Differential Revision: https://developer.blender.org/D7955
===================================================================
M source/blender/editors/mesh/editmesh_select.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index 6b029cdef16..fe83d9f00ea 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -319,7 +319,9 @@ BMVert *EDBM_vert_find_nearest_ex(ViewContext *vc,
else {
struct NearestVertUserData data = {{0}};
const struct NearestVertUserData_Hit *hit = NULL;
- const eV3DProjTest clip_flag = V3D_PROJ_TEST_CLIP_DEFAULT;
+ const eV3DProjTest clip_flag = RV3D_CLIPPING_ENABLED(vc->v3d, vc->rv3d) ?
+ V3D_PROJ_TEST_CLIP_DEFAULT :
+ V3D_PROJ_TEST_CLIP_DEFAULT & ~V3D_PROJ_TEST_CLIP_BB;
BMesh *prev_select_bm = NULL;
static struct {
More information about the Bf-blender-cvs
mailing list