Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-01 14:02:26 +0400
committerTon Roosendaal <ton@blender.org>2006-07-01 14:02:26 +0400
commit41b0a4a3adb57ebfa1ee603f9c3a266a47a5666f (patch)
tree61df5b770b71144d16a1d124c0f8bf7ce1f51871 /source/blender/src/editmesh_tools.c
parentc33a8b65c0d7bedbfb42a32f7cb7ff50707cdce0 (diff)
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!
Diffstat (limited to 'source/blender/src/editmesh_tools.c')
-rw-r--r--source/blender/src/editmesh_tools.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}