diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-05 10:17:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-05 10:17:19 +0300 |
commit | 98b608bfdbc3898d857b513f6e2f78df2e77ca40 (patch) | |
tree | ca686fe95c1d6ccfde644efd34d4dbc0ad8ef4d9 /source/blender/modifiers/intern | |
parent | 91f4a4d7e16643750c119e1c6684f63038d0be02 (diff) |
workaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex do crash
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_edgesplit.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |