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>2012-11-16 17:41:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-16 17:41:21 +0400
commit8928344bf7cb1319aa6ab1b0089fad474e796ce6 (patch)
tree7b442cbd421c01db8f09da449bf2fdb4da4f2d1e /source/blender/bmesh/operators/bmo_bevel.c
parent366b60c6cb62722173c09f440af34c05052c53d7 (diff)
fix for own bug in quad-stip fill method, quad strips were skewed.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_bevel.c')
-rw-r--r--source/blender/bmesh/operators/bmo_bevel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_bevel.c b/source/blender/bmesh/operators/bmo_bevel.c
index 076ff0b75cb..d8a3e3fbb3e 100644
--- a/source/blender/bmesh/operators/bmo_bevel.c
+++ b/source/blender/bmesh/operators/bmo_bevel.c
@@ -1193,7 +1193,10 @@ static void bevel_build_quadstrip(BMesh *bm, BevVert *bv)
if (f) {
/* we have a polygon which we know starts at this vertex, make it into strips */
- BMVert *v_first = bv->vmesh->boundstart->efirst->next->next->leftv->nv.v; /* magic? */
+ EdgeHalf *efirst = bv->vmesh->boundstart->efirst;
+ BMVert *v_first = efirst->is_bev ?
+ efirst->next->leftv->nv.v :
+ efirst->next->next->leftv->nv.v; /* magic? */
//BMLoop *l_start = BM_FACE_FIRST_LOOP(f);
BMLoop *l_start = BM_face_vert_share_loop(f, v_first);
BMLoop *l_a = l_start->prev, *l_a_step;