workaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 5 Mar 2011 07:17:19 +0000 (07:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 5 Mar 2011 07:17:19 +0000 (07:17 +0000)
source/blender/modifiers/intern/MOD_edgesplit.c

index 05e195d9b8f4fc82c414ce0df39ca346a10e35c6..d2dcd0ffeafb0b7a444bc17f1538c8eab624b5b8 100644 (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);