diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-19 13:45:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-19 13:45:56 +0400 |
commit | 2cb39ea9da3ce5dd45a0be6f997a0c1d942ad4fc (patch) | |
tree | dbc8f2cebab8a6db7596aaf102a10da9d2d179a5 /source/blender/bmesh/tools | |
parent | fbf4f57cd6c20d72ca3d13ab021ff6b069d68240 (diff) |
use BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces to get some speedup.
Diffstat (limited to 'source/blender/bmesh/tools')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index cc472e4a501..fbac538eb7f 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -269,7 +269,11 @@ static BMFace *bev_create_ngon(BMesh *bm, BMVert **vert_arr, const int totv, BMF for (i = 0; i < totv; i++) { ee[i] = BM_edge_create(bm, vert_arr[i], vert_arr[(i + 1) % totv], NULL, BM_CREATE_NO_DOUBLE); } +#if 0 f = BM_face_create_ngon(bm, vert_arr[0], vert_arr[1], ee, totv, 0); +#else + f = BM_face_create(bm, vert_arr, ee, totv, 0); +#endif } if (facerep && f) { int has_mdisps = CustomData_has_layer(&bm->ldata, CD_MDISPS); |