From 41b0a4a3adb57ebfa1ee603f9c3a266a47a5666f Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 1 Jul 2006 10:02:26 +0000 Subject: [PATCH] Bug #4552 Added extra security for fill faces. This function is being used for importing now too, and it gets called for quite weird fill cases... nevertheless, it should not crash! --- source/blender/src/editmesh_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c index 2eb74b4c582..d7bcf39a1cf 100644 --- a/source/blender/src/editmesh_tools.c +++ b/source/blender/src/editmesh_tools.c @@ -1167,7 +1167,7 @@ void fill_mesh(void) /* normals default pointing up */ efan= addfacelist(efa->v3->tmp.v, efa->v2->tmp.v, efa->v1->tmp.v, 0, NULL, NULL); - EM_select_face(efan, 1); + if(efan) EM_select_face(efan, 1); efa= efa->next; } }