diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-24 09:02:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-24 09:02:53 +0400 |
commit | f02694f5a480c2c0f9cd695075da4eacebd18666 (patch) | |
tree | 4e53a7df88856332b2df251cad5c10edafb9c163 /source/blender/bmesh | |
parent | 077cbaddf00015d44fba7d52f194406d8891724b (diff) |
workaround for vertex bevel modifier failing since the BMesh update.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/tools/BME_bevel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/BME_bevel.c b/source/blender/bmesh/tools/BME_bevel.c index 0a38b50afae..0f3cb7c90f7 100644 --- a/source/blender/bmesh/tools/BME_bevel.c +++ b/source/blender/bmesh/tools/BME_bevel.c @@ -62,6 +62,9 @@ * so I need to decide what to do in these cases. */ +/* BMESH_TODO - resolve this */ +#define BMESH_263_VERT_BEVEL_WORKAROUND + /* ------- Bevel code starts here -------- */ BME_TransData_Head *BME_init_transdata(int bufsize) @@ -660,10 +663,15 @@ static BMFace *BME_bevel_poly(BMesh *bm, BMFace *f, float value, int options, BM /* find a good normal for this face (there's better ways, I'm sure) */ BM_ITER_ELEM (l, &iter, f, BM_LOOPS_OF_FACE) { +#ifdef BMESH_263_VERT_BEVEL_WORKAROUND + add_newell_cross_v3_v3v3(up_vec, l->prev->v->co, l->v->co); +#else BME_bevel_get_vec(vec1, l->v, l->next->v, td); BME_bevel_get_vec(vec2, l->prev->v, l->v, td); cross_v3_v3v3(vec3, vec2, vec1); add_v3_v3(up_vec, vec3); + +#endif } normalize_v3(up_vec); |