From 173b956ea2df41b0f78f4ea670fca1aa115653e1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 28 Nov 2011 15:31:34 +0000 Subject: [PATCH] fix for missing NULL check in remove doubles. --- source/blender/bmesh/operators/removedoubles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;