workaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex do crash

This commit is contained in:
Campbell Barton
2011-03-05 07:17:19 +00:00
parent 91f4a4d7e1
commit 98b608bfdb

View File

@@ -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);