From 98b608bfdbc3898d857b513f6e2f78df2e77ca40 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 5 Mar 2011 07:17:19 +0000 Subject: [PATCH] workaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex do crash --- source/blender/modifiers/intern/MOD_edgesplit.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/blender/modifiers/intern/MOD_edgesplit.c b/source/blender/modifiers/intern/MOD_edgesplit.c index 05e195d9b8f..d2dcd0ffeaf 100644 --- a/source/blender/modifiers/intern/MOD_edgesplit.c +++ b/source/blender/modifiers/intern/MOD_edgesplit.c @@ -848,6 +848,12 @@ static void split_single_vert(SmoothVert *vert, SmoothFace *face, copy_vert = smoothvert_copy(vert, mesh); + if(copy_vert == NULL) { + /* bug [#26316], this prevents a segfault + * but this still needs fixing */ + return; + } + repdata.find = vert; repdata.replace = copy_vert; face_replace_vert(face, &repdata);