From d3a566457b8272a1a34be59569856305c9777c65 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 24 Aug 2012 16:55:25 +0000 Subject: fix for merged bridge crashing on closed loops (own bug in recent commit) --- source/blender/bmesh/operators/bmo_connect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/bmesh/operators/bmo_connect.c') diff --git a/source/blender/bmesh/operators/bmo_connect.c b/source/blender/bmesh/operators/bmo_connect.c index c9a0d74de38..5b317aebbf0 100644 --- a/source/blender/bmesh/operators/bmo_connect.c +++ b/source/blender/bmesh/operators/bmo_connect.c @@ -429,8 +429,7 @@ void bmo_bridge_loops_exec(BMesh *bm, BMOperator *op) /* merge loops of bridge faces */ if (use_merge) { - /* at the moment these will be the same */ - const int vert_len = mini(BLI_array_count(vv1), BLI_array_count(vv2)); + const int vert_len = mini(BLI_array_count(vv1), BLI_array_count(vv2)) - ((cl1 || cl2) ? 1 : 0); const int edge_len = mini(BLI_array_count(ee1), BLI_array_count(ee2)); if (merge_factor <= 0.0f) { -- cgit v1.2.3