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>2013-06-04 09:03:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-04 09:03:36 +0400
commitc21f7116c02f50b00a1d8dd41150dd40801765b6 (patch)
treef45970f130bdc82e36a04646ddf679d2b8eb295e /source/blender/editors/mesh/editmesh_path.c
parent48fd740096c283243498d6271b6bff5da275cb36 (diff)
correct error getting the selection from recent change.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_path.c')
-rw-r--r--source/blender/editors/mesh/editmesh_path.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_path.c b/source/blender/editors/mesh/editmesh_path.c
index 6f591c5c8d4..7b6d198d537 100644
--- a/source/blender/editors/mesh/editmesh_path.c
+++ b/source/blender/editors/mesh/editmesh_path.c
@@ -527,7 +527,7 @@ static int edbm_shortest_path_select_exec(bContext *C, wmOperator *op)
}
else {
/* if selection history isn't available, find two selected elements */
-
+ ele_src = ele_dst = NULL;
if ((em->selectmode & SCE_SELECT_VERTEX) && (em->bm->totvertsel >= 2)) {
BM_ITER_MESH (ele, &iter, em->bm, BM_VERTS_OF_MESH) {
if (BM_elem_flag_test(ele, BM_ELEM_SELECT)) {
@@ -538,7 +538,8 @@ static int edbm_shortest_path_select_exec(bContext *C, wmOperator *op)
}
}
- if ((ele_src == NULL) && (em->selectmode & SCE_SELECT_EDGE) && (em->bm->totedgesel >= 2)) {
+ if ((ele_dst == NULL) && (em->selectmode & SCE_SELECT_EDGE) && (em->bm->totedgesel >= 2)) {
+ ele_src = NULL;
BM_ITER_MESH (ele, &iter, em->bm, BM_EDGES_OF_MESH) {
if (BM_elem_flag_test(ele, BM_ELEM_SELECT)) {
if (ele_src == NULL) ele_src = ele;
@@ -548,7 +549,8 @@ static int edbm_shortest_path_select_exec(bContext *C, wmOperator *op)
}
}
- if ((ele_src == NULL) && (em->selectmode & SCE_SELECT_FACE) && (em->bm->totfacesel >= 2)) {
+ if ((ele_dst == NULL) && (em->selectmode & SCE_SELECT_FACE) && (em->bm->totfacesel >= 2)) {
+ ele_src = NULL;
BM_ITER_MESH (ele, &iter, em->bm, BM_FACES_OF_MESH) {
if (BM_elem_flag_test(ele, BM_ELEM_SELECT)) {
if (ele_src == NULL) ele_src = ele;