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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-23 13:50:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-23 13:50:10 +0400
commitdc12dd23f686f78f0765637f8a2b2607da95dece (patch)
treec721f6948f389742033ea339efe965e485c5e279 /source
parentadba6952094388113cd750a252e28c3a32199b4e (diff)
fix for connect_pair cutting across triangle verts from edges.
Diffstat (limited to 'source')
-rw-r--r--source/blender/bmesh/operators/bmo_connect_pair.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/bmesh/operators/bmo_connect_pair.c b/source/blender/bmesh/operators/bmo_connect_pair.c
index 8ffa064a843..7db7af4e9e5 100644
--- a/source/blender/bmesh/operators/bmo_connect_pair.c
+++ b/source/blender/bmesh/operators/bmo_connect_pair.c
@@ -170,14 +170,14 @@ static void state_link_add(PathContext *pc, PathLinkState *state,
BLI_assert(0);
}
- if (ele_prev == NULL) {
+ if (ele_from == NULL) {
printf("from NULL\n");
}
- else if (ele_prev->head.htype == BM_EDGE) {
- printf("from edge %d\n", BM_elem_index_get(ele_prev));
+ else if (ele_from->head.htype == BM_EDGE) {
+ printf("from edge %d\n", BM_elem_index_get(ele_from));
}
- else if (ele_prev->head.htype == BM_FACE) {
- printf("from face %d\n", BM_elem_index_get(ele_prev));
+ else if (ele_from->head.htype == BM_FACE) {
+ printf("from face %d\n", BM_elem_index_get(ele_from));
}
else {
BLI_assert(0);
@@ -286,6 +286,8 @@ static bool state_step(PathContext *pc, PathLinkState *state)
else {
state = state_step__face_edges(pc, state, &state_orig,
l_start->next, l_start);
+ state = state_step__face_verts(pc, state, &state_orig,
+ l_start->next->next, l_start);
}
}
}