diff --git a/source/blender/bmesh/operators/removedoubles.c b/source/blender/bmesh/operators/removedoubles.c index 14d74a61e4c..6c4aa7b74ac 100644 --- a/source/blender/bmesh/operators/removedoubles.c +++ b/source/blender/bmesh/operators/removedoubles.c @@ -185,7 +185,7 @@ void bmesh_weldverts_exec(BMesh *bm, BMOperator *op) v2 = BMO_Get_MapPointer(bm, op, "targetmap", v2); f2 = BM_Make_Ngon(bm, v, v2, edges, a, 1); - if (f2 != f) { + if (f2 && (f2 != f)) { BM_Copy_Attributes(bm, bm, f, f2); a = 0;