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:
authorCampbell Barton <ideasman42@gmail.com>2011-03-05 10:17:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-05 10:17:19 +0300
commit98b608bfdbc3898d857b513f6e2f78df2e77ca40 (patch)
treeca686fe95c1d6ccfde644efd34d4dbc0ad8ef4d9
parent91f4a4d7e16643750c119e1c6684f63038d0be02 (diff)
workaround for crash (not an actual fix) [#26316] Mirror and EdgeSplit - Grab Vertex do crash
-rw-r--r--source/blender/modifiers/intern/MOD_edgesplit.c6
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);