diff options
Diffstat (limited to 'source/blender/bmesh/operators/mesh_conv.c')
-rw-r--r-- | source/blender/bmesh/operators/mesh_conv.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/bmesh/operators/mesh_conv.c b/source/blender/bmesh/operators/mesh_conv.c index b59e89ff7d2..35a7511403c 100644 --- a/source/blender/bmesh/operators/mesh_conv.c +++ b/source/blender/bmesh/operators/mesh_conv.c @@ -437,7 +437,6 @@ void bmesh_to_mesh_exec(BMesh *bm, BMOperator *op) { totface = 0; BM_ITER(f, &iter, bm, BM_FACES_OF_MESH, NULL) { EditVert *eve, *lasteve = NULL, *firsteve = NULL; - EditFace *efa; BLI_begin_edgefill(); i = 0; @@ -458,10 +457,7 @@ void bmesh_to_mesh_exec(BMesh *bm, BMOperator *op) { } BLI_addfilledge(lasteve, firsteve); - BLI_edgefill(0); - - for (efa=fillfacebase.first; efa; efa=efa->next) - totface++; + totface += BLI_edgefill(0); BLI_end_edgefill(); } |