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>2019-05-16 13:26:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-16 13:29:05 +0300
commitf30921fc6879f0018f63352f404b6d4b41fbacf9 (patch)
tree2a3d81ab092096f9aba928d859addcdd35641294 /source/blender/editors/mesh
parentfced0f043786bf54fa1e2bc4a78c91883fee8ed8 (diff)
Fix T64687: Loop select work only with edges
Regression in recent commit 8a6414ed46f66
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_select.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index 36019443eb8..c8d17e76344 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -1168,9 +1168,8 @@ static bool unified_findnearest(ViewContext *vc,
} hit = {{NULL}};
/* no afterqueue (yet), so we check it now, otherwise the em_xxxofs indices are bad */
- short selectmode = vc->scene->toolsettings->selectmode;
- if ((dist > 0.0f) && (selectmode & SCE_SELECT_FACE)) {
+ if ((dist > 0.0f) && (em->selectmode & SCE_SELECT_FACE)) {
float dist_center = 0.0f;
float *dist_center_p = (em->selectmode & (SCE_SELECT_EDGE | SCE_SELECT_VERTEX)) ?
&dist_center :
@@ -1194,7 +1193,7 @@ static bool unified_findnearest(ViewContext *vc,
}
}
- if ((dist > 0.0f) && (selectmode & SCE_SELECT_EDGE)) {
+ if ((dist > 0.0f) && (em->selectmode & SCE_SELECT_EDGE)) {
float dist_center = 0.0f;
float *dist_center_p = (em->selectmode & SCE_SELECT_VERTEX) ? &dist_center : NULL;
@@ -1216,7 +1215,7 @@ static bool unified_findnearest(ViewContext *vc,
}
}
- if ((dist > 0.0f) && (selectmode & SCE_SELECT_VERTEX)) {
+ if ((dist > 0.0f) && (em->selectmode & SCE_SELECT_VERTEX)) {
uint base_index = 0;
BMVert *eve_test = EDBM_vert_find_nearest_ex(
vc, &dist, true, use_cycle, bases, bases_len, &base_index);